Julian Sedding created OAK-11895:
------------------------------------
Summary: CheckpointCompactor writes to "after" instead of "onto"
NodeState
Key: OAK-11895
URL: https://issues.apache.org/jira/browse/OAK-11895
Project: Jackrabbit Oak
Issue Type: Bug
Components: segment-tar
Affects Versions: 1.84.0
Reporter: Julian Sedding
Assignee: Julian Sedding
The method {{CheckpointCompactor#compact(NodeState before, NodeState after,
NodeState onto, Canceller canceller)}} writes the compacted changes to the
"after" NodeState instead of the "onto" NodeState.
Likely, this went unnoticed until now, because AFAICS all used invocations
within Oak pass the same NodeState for the "after" and "onto" NodeStates.
I am trying to create a compacted copy of a segmentstore. In this scenario the
"after" NodeState is backed by a {{ReadOnlyFileStore}}, because it is
compacting the segmentstore of a running system. When testing this scenario, I
got an exception, because the write to the "after" NodeState were denied.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)