Michael Dürig created OAK-3347:
----------------------------------

             Summary: Ineffective cleanup after compaction due to references to 
root
                 Key: OAK-3347
                 URL: https://issues.apache.org/jira/browse/OAK-3347
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: segmentmk
            Reporter: Michael Dürig
            Assignee: Michael Dürig


The cleanup phase after a compaction run is currently not able to remove the 
pre compacted segments as the previous (pre-compacted) root is still being 
referenced. Those references are coming from:

* The {{before}} [local 
variable|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/FileStore.java#L653]
 in {{FileStore.flush}}.
* The [current 
head|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentNodeStore.java#L85-L85]
 of the {{SegmentNodeStore}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to