ethersphere / swarm

Swarm: Censorship resistant storage and communication infrastructure for a truly sovereign digital society
https://swarm.ethereum.org/
GNU Lesser General Public License v3.0
488 stars 110 forks source link

pinned content disappears when gc is triggered multiple times #2195

Closed santicomp2014 closed 4 years ago

santicomp2014 commented 4 years ago

When doing the global pinning test, a bug was found in the local pinning, there are pinned chunks that are being garbage collected when multiple GC is run.

This can be verified by

This should be tested by pinning once the content, and also by pinning multiple times the same chunk and repeating the test.

After the first run of the Garbage collection, the pinned chunk is removed from gcExcludeIndex So the next time the GC is run it will be deleted from the chunks.

Eknir commented 4 years ago

@jmozah , just for you. I know you are also working on it in Bee

mortelli commented 4 years ago

completed through #2200