Hi Jorge, I'm not an expert, but I think it might be related to OAK-804 <https://issues.apache.org/jira/browse/OAK-8048>. The root version should be automatically removed when removing the last version. But since it isn't, there is still one node that references the binary, so (the binary) is not removed when running the garbage collector.
Marco. On Mon, Feb 24, 2020 at 9:42 PM jorgeeflorez . <[email protected]> wrote: > Hi, > I managed to delete all versions for nodes that no longer exist (except the > jcr:rootVersion nodes, they are "protected"). I was expecting that the > total size of my binary storage would decrease (I am using > OakFileDataStore), since some files are no longer referenced in any nodes. > But that did not happen... > > Any help is appreciated. > > Jorge > > El vie., 21 feb. 2020 a las 15:12, jorgeeflorez . (< > [email protected]>) escribió: > > > Hi, > > when I delete a node that has version history, using node.remove() and > > then session.save(), should all version info related to that node be > > deleted automatically? what about the files in that version history? > > > > After deleting, I print all nodes of the repository and I keep seeing > > those version nodes. Actually, I was working with a repository uses a > > DataStoreBlobStore and after deleting some file nodes I was expecting > that > > the total size of the folder that contains the files would decrease and > it > > did not happen, which led me to make this question :) > > > > Thanks. > > > > Jorge > > >
