You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "rishabhdaim (via GitHub)" <gi...@apache.org> on 2026/07/17 08:45:37 UTC

[PR] OAK-12316 : removed FT_NOCOCLEANUP_OAK-10660 feature toggle [jackrabbit-oak]

rishabhdaim opened a new pull request, #3033:
URL: https://github.com/apache/jackrabbit-oak/pull/3033

   ## Summary
   
   Removes the `FT_NOCOCLEANUP_OAK-10660` feature toggle from `oak-store-document`, following the same pattern used in #2946 (removal of `FT_FULL_GC_OAK-10199`).
   
   The toggle was a kill-switch that, when enabled, disabled cleanup of stale `:childOrder` branch-commit entries in `Commit#applyToDocumentStore`. Since the toggle defaults to disabled (i.e. cleanup is enabled by default today), removing it and making the cleanup unconditional preserves today's default behavior exactly — cleanup is now always on, with no way to turn it off.
   
   ## Changes
   
   - `DocumentNodeStore` — removed `noChildOrderCleanupFeature` field and `isChildOrderCleanupEnabled()` method
   - `Commit` — made the `:childOrder` branch-commit cleanup unconditional
   - `DocumentNodeStoreBuilder` / `DocumentNodeStoreService` — removed the field, getter/setter, and toggle registration
   - Test fixtures (`DocumentMemoryFixture`, `DocumentRdbFixture`, `DocumentMongoFixture`) — removed toggle wiring
   - `OrderableNodesTest` — removed the toggle-flipping test (no toggle left to flip)
   - `AGENTS.md` / `oak-store-document/AGENTS.md` — updated docs noting cleanup is now always on with no replacement config
   
   ## Test Plan
   
   - [x] Added `CommitTest#childOrderCleanupAlwaysEnabled` — creates two branch commits that each set `:childOrder`, merges, then inspects the raw `NodeDocument` to confirm only the latest revision's entry remains. Verified this test fails when the cleanup logic is disabled, confirming it is a genuine regression detector.
   - [x] `CommitTest`, `DocumentNodeStoreBuilderTest`, `DocumentNodeStoreServiceTest`, `DocumentNodeStoreBranchTest`, `DocumentNodeStoreBranchesTest`, `OrderableNodesTest` (oak-jcr) pass
   - [x] Full `oak-store-document` test suite passes
   
   ## Links
   
   - JIRA: https://issues.apache.org/jira/browse/OAK-12316
   
   Co-Authored-By: Claude Sonnet 5 <no...@anthropic.com>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OAK-12316 : removed FT_NOCOCLEANUP_OAK-10660 feature toggle [jackrabbit-oak]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #3033:
URL: https://github.com/apache/jackrabbit-oak/pull/3033#issuecomment-5003100931

   ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033) **Quality Gate passed**  
   Issues  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [1 New issue](https://sonarcloud.io/project/issues?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033&issueStatuses=ACCEPTED)
   
   Measures  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033&metric=new_coverage&view=list)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033&metric=new_duplicated_lines_density&view=list)  
     
   <!-- sqra-placement-anchor -->
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=org.apache.jackrabbit%3Ajackrabbit-oak&pullRequest=3033)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OAK-12316 : removed FT_NOCOCLEANUP_OAK-10660 feature toggle [jackrabbit-oak]

Posted by "rishabhdaim (via GitHub)" <gi...@apache.org>.
rishabhdaim merged PR #3033:
URL: https://github.com/apache/jackrabbit-oak/pull/3033


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] OAK-12316 : removed FT_NOCOCLEANUP_OAK-10660 feature toggle [jackrabbit-oak]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3033:
URL: https://github.com/apache/jackrabbit-oak/pull/3033#issuecomment-5000904382

   # Commit-Check ✔️


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: oak-dev-unsubscribe@jackrabbit.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org