Same:
trash/v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa/2024-04-13/2024-04-13/2024-04-13/2a
Does not look right.
Same:
trash/v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa/2024-04-13/2024-04-13/2024-04-13/2a
Does not look right.
I meant a storagenode update, like from v.1.99.3 → v1.100.3. which has its rollout started.
As well as the bloom filter from yesterday.
Now when my node is processing a bloom filter and receives an update. My guess is it will restart then and the processing of the bloom filter will not complete.
We changed recently, how we will store trash:
why?
But why have nested date folders?
Because of this: GC bloom filter should be stored on disk in case of node restart · Issue #6725 · storj/storj · GitHub
This is just an idea. It was never considered it as a solution, sorry, if I confused you.
I do not implement things (yet), so this is only a proposal.
I guess you read the description of the issue? I believe, It should answer this question.
I thought it should save the filter and continue when it was interrupted?
@Alexey Yes, that’s what I said.
Roughly the same time. It took 12 hours to send out all the bloom filters.
See the commit below. Recent improvements make it possible to:
This looks right to you?
storage/trash/qstuylguhrn2ozjv4h2c6xpxykd622gtgurhql2k7k75wqaaaaaa/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2024-04-13
How many more nested folders can I expect under it?
This is live In version 1.99.3 already?
Nested date folders in trash makes it very easy to purge old trash data. You don’t need to check each trash files on by one for the deletion time (which is the creation date of the trashed file). You can just delete folders which are old enough…
Not a primary goal, but it also makes it easier to debug what happened…
I don’t understand the need for nested folders even after reading the github issue. In my mind the process should be this: on the first update to a version that uses the date folders, assume that all files under trash were saved before today’s date (which they have, otherwise something else is wrong), and store them in today’s trash folder. Any files trashed tomorrow should go in tomorrow’s trash folder and so on.
I don’t think we even need separate “top level” folders for every satellite (read whole paragraph before commenting). It doesn’t matter if a file was from US1 or EU1. If its 7 days are gone, that file will be deleted regardless. If US1 blooms today and EU1 blooms tomorrow, the files will be deleted with 1 day difference since they will be stored under 2024-04-12/US1 and 2024-04-13/EU1, or am I missing something? Saves using separate “top level” directories for the satellites and prevents nesting dates. Has the “top level” directory aged enough to be deleted? If yes, delete it.
Right. But we see multi-nested folders with the same date:
/storage/trash/qstuylguhrn2ozjv4h2c6xpxykd622gtgurhql2k7k75wqaaaaaa/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2024-04-13/2a
This appears weird. But if this is how it should be then everything is fine.
Adding to that:
/storage/trash/2024-04-13/qstuylguhrn2ozjv4h2c6xpxykd622gtgurhql2k7k75wqaaaaaa/
That’s what it should be (see my previous comment).
Can you check if any of the directories under /storage/trash
contain a file named .trash-uses-day-dirs-indicator
?
EDIT: And a second question: how many entries with migrating trash namespace to use per-day directories
do you see in your logs?
drwx------ 3 node11 node11 4096 Apr 12 19:38 pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa
drwx------ 3 node11 node11 4096 Apr 12 19:38 qstuylguhrn2ozjv4h2c6xpxykd622gtgurhql2k7k75wqaaaaaa
-rw-r--r-- 1 node11 node11 23 Apr 12 19:38 .trash-uses-day-dirs-indicator
drwx------ 4 node11 node11 4096 Apr 13 04:14 ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa
drwx------ 3 node11 node11 4096 Apr 12 19:38 v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa
Version v1.101.3
Digging further in:
root@store2 ~ # ls /home/node11/storj/storagenode/storage/trash/pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa/2024-04-12/
22/ 2t/ 3m/ 4f/ 56/ 5x/ 6q/ 7j/ ac/ b3/ bu/ cn/ dg/ e7/ ey/ fr/ gk/ hd/ i4/ iv/ jo/ kh/ la/ lz/ ms/ nl/ oe/ p5/ pw/ qp/ ri/ sb/ t2/ tt/ um/ vf/ w6/ wx/ xq/ yj/ zc/
23/ 2u/ 3n/ 4g/ 57/ 5y/ 6r/ 7k/ ad/ b4/ bv/ co/ dh/ ea/ ez/ fs/ gl/ he/ i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4/ zv/
2o/ 3h/ 4a/ 4z/ 5s/ 6l/ 7e/ a5/ aw/ bp/ ci/ db/ e2/ et/ fm/ gf/ h6/ hx/ iq/ jj/ kc/ l3/ lu/ mn/ ng/ o7/ oy/ pr/ qk/ rd/ s4/ sv/ to/ uh/ va/ vz/ ws/ xl/ ye/ z5/ zw/
2p/ 3i/ 4b/ 52/ 5t/ 6m/ 7f/ a6/ ax/ bq/ cj/ dc/ e3/ eu/ fn/ gg/ h7/ hy/ ir/ jk/ kd/ l4/ lv/ mo/ nh/ oa/ oz/ ps/ ql/ re/ s5/ sw/ tp/ ui/ vb/ w2/ wt/ xm/ yf/ z6/ zx/
2q/ 3j/ 4c/ 53/ 5u/ 6n/ 7g/ a7/ ay/ br/ ck/ dd/ e4/ ev/ fo/ gh/ ha/ hz/ is/ jl/ ke/ l5/ lw/ mp/ ni/ ob/ p2/ pt/ qm/ rf/ s6/ sx/ tq/ uj/ vc/ w3/ wu/ xn/ yg/ z7/ zy/
2r/ 3k/ 4d/ 54/ 5v/ 6o/ 7h/ aa/ az/ bs/ cl/ de/ e5/ ew/ fp/ gi/ hb/ i2/ it/ jm/ kf/ l6/ lx/ mq/ nj/ oc/ p3/ pu/ qn/ rg/ s7/ sy/ tr/ uk/ vd/ w4/ wv/ xo/ yh/ za/ zz/
2s/ 3l/ 4e/ 55/ 5w/ 6p/ 7i/ ab/ b2/ bt/ cm/ df/ e6/ ex/ fq/ gj/ hc/ i3/ iu/ jn/ kg/ l7/ ly/ mr/ nk/ od/ p4/ pv/ qo/ rh/ sa/ sz/ ts/ ul/ ve/ w5/ ww/ xp/ yi/ zb/
No nested dates, still not optimal.
Edit: Not running info logs.
Sorry, this was a question to @jammerdan and @flo to debug the multiply nested date directories.
it’s in /storage/trash
One per satellite.
I have it only on one node currently. That is strange.
I don’t know how this works but maybe there is some wrong coding? Like it tells GC to create the new folder under the last folder, not under the top folder.
Looks ok then. If, for some reason, the node was not able to create that file, migration procedure would run multiple times for a single satellite, nesting existing directories. But it seems this is not what is happening with your node.
No. It doesn’t look right. There should be only one folder for deleted items per date.