[ 
https://issues.apache.org/jira/browse/OAK-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Parvulescu updated OAK-2192:
---------------------------------
    Attachment: OAK-2192-possible-test.patch

attaching a possible test for this behavior. I know it doesn't really qualify 
as a unit test as I basically copied over those bits, but maybe it's a good 
start.

using the same basic idea, you could build a test that boots up a store, in a 
separate thread starts adding content aggressively, then run the exact check: 
none of the initial segmentids should be present in the new store. but I find 
this to be inconsistent and unreliable as far as tests go.

> Concurrent commit during compaction results in mixed segments
> -------------------------------------------------------------
>
>                 Key: OAK-2192
>                 URL: https://issues.apache.org/jira/browse/OAK-2192
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: compaction, gc
>         Attachments: OAK-2192-possible-test.patch, OAK-2192.patch
>
>
> Changes that are committed during a segment store compaction run will be 
> compacted on top of the already compacted changes. However the compactor uses 
> the wrong before state in this case. Instead of compacting against the 
> compacted before state it uses the un-compacted before state. The resulting 
> state will thus contain references to un-compacted state, making those not 
> eligible for later clean up. 



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

Reply via email to