[
https://issues.apache.org/jira/browse/OAK-12513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rishabh Daim resolved OAK-12513.
--------------------------------
Fix Version/s: 2.10.0
Resolution: Fixed
> Make IncrementalStoreTest independent of background write timing
> ----------------------------------------------------------------
>
> Key: OAK-12513
> URL: https://issues.apache.org/jira/browse/OAK-12513
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Rishabh Daim
> Assignee: Rishabh Daim
> Priority: Major
> Fix For: 2.10.0
>
>
> IncrementalStoreTest can export the initial content when it expects the final
> content, causing unrelated CI builds to fail.
> h3. Failure
> [GitHub Actions failure on PR
> 3268|https://github.com/apache/jackrabbit-oak/actions/runs/42075556392/job/127414676101?pr=3268]:
> testWithNoCompression fails in createFFS while checking the final flat file
> store. For example, /content/dam/2022/02 still has p1=v202202 instead of
> v202202-new, and newly added nodes are missing.
> h3. Cause
> The test uses setAsyncDelay(1) and opens separate read-only
> DocumentNodeStores immediately after committing content. Their root revision
> comes from persisted _lastRev values. If the writer has not flushed its
> pending background updates, the read-only store exports an older revision.
> Creating a checkpoint does not replace that required publication step.
> h3. Reproduction
> With MongoDB available, run mvn -pl oak-run
> -Dtest=IncrementalStoreTest#testWithNoCompression test. The ordinary run may
> pass. To reproduce deterministically, set the test builder asyncDelay to 0
> and call runBackgroundOperations() after createBaseContent only. The final
> export then fails with the same initial-versus-final content mismatch as the
> linked CI job.
> h3. Fix
> Disable automatic background operations in this test and explicitly run the
> writer background operations after both base and incremental content commits,
> before creating the respective read-only stores. Retain all six
> compression/filter scenarios and their existing assertions. No production
> behavior changes.
> Related historical reports: OAK-11027 and OAK-11298 (both closed).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)