[
https://issues.apache.org/jira/browse/OAK-4536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger resolved OAK-4536.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.5.5
Done in trunk: http://svn.apache.org/r1751494
InMemory branch state now counts the number of changes and only transitions to
Persisted on setRoot() when the number of changes reaches update.limit.
> Avoid premature branch
> ----------------------
>
> Key: OAK-4536
> URL: https://issues.apache.org/jira/browse/OAK-4536
> Project: Jackrabbit Oak
> Issue Type: Technical task
> Components: core, documentmk
> Reporter: Marcel Reutegger
> Assignee: Marcel Reutegger
> Fix For: 1.6, 1.5.5
>
>
> Some usage patterns will lead a premature branch created by the
> DocumentNodeStore. Every {{DocumentRootBuilder.purge()}} call currently
> causes a transition of the BranchState, from {{Unmodified}} to {{InMemory}}
> to {{Persisted}}. This means BranchState may reach {{Persisted}} even though
> {{update.limit}} is not reached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)