[
https://issues.apache.org/jira/browse/OAK-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546888#comment-13546888
]
Mete Atamel commented on OAK-542:
---------------------------------
That's a good catch. I think branchQuery in FetchNodesActionNew needs to change
to this:
DBObject branchQuery = QueryBuilder.start().or(
QueryBuilder.start(MongoNode.KEY_BRANCH_ID).is(branchId).get(),
QueryBuilder.start(MongoNode.KEY_REVISION_ID).lessThanEquals(headBranchRevisionId)
.and(new BasicDBObject(MongoNode.KEY_BRANCH_ID, new
BasicDBObject("$exists", false))).get()
).get();
> MongoMK.getNodes() may return changes from other unmerged branch
> ----------------------------------------------------------------
>
> Key: OAK-542
> URL: https://issues.apache.org/jira/browse/OAK-542
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: mongomk
> Affects Versions: 0.5
> Reporter: Marcel Reutegger
> Assignee: Marcel Reutegger
>
> I ran into a case where MongoMK.getNodes() returned changes from a unmerged
> branch commit while it was asked to retrieve the node from *another* branch.
> I'll commit a test case in a minute...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira