[ 
https://issues.apache.org/jira/browse/OAK-1335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke updated OAK-1335:
--------------------------------

    Attachment: OAK-1335.diff

Proposed patch

1) Fail early in version selection code when we detect two versions with the 
same timestamp

2) in checkin(), ensure that currentTimeMillis is different from baseversion 
(by busy-waiting)

> version history related test failures
> -------------------------------------
>
>                 Key: OAK-1335
>                 URL: https://issues.apache.org/jira/browse/OAK-1335
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Julian Reschke
>         Attachments: OAK-1335.diff, log
>
>
> ...when running the integrationTesting profile:
> Failed tests:   
> testInitialNumberOfVersions(org.apache.jackrabbit.test.api.version.VersionHistoryTest):
>  VersionHistory.getAllVersions() initially returns an iterator with two 
> versions. expected:<2> but was:<1>
>   
> testInitialNumberOfLinearVersions(org.apache.jackrabbit.test.api.version.VersionHistoryTest):
>  VersionHistory.getAllVersions() and .getAllLinearVersions should return the 
> same number of versions for a purely linear version history. expected:<1> but 
> was:<2>
>   
> testGetAllVersions(org.apache.jackrabbit.test.api.version.VersionHistoryTest):
>  VersionHistory.getAllVersions() must contain the root version and all 
> versions that have been created with a Node.checkin() call.
>   
> testGetAllVersionsJcr2(org.apache.jackrabbit.test.api.version.VersionHistoryTest):
>  VersionHistory.getAllVersions() must contain the root version and all 
> versions that have been created with a Node.checkin() call.
>   
> testCheckinCreatesNewVersionJcr2(org.apache.jackrabbit.test.api.version.CheckinTest):
>  Checkin must create a new Version in the VersionHistory.
>   testRestoreNameJcr2(org.apache.jackrabbit.test.api.version.RestoreTest): 
> restore must restore child node version 1.0. expected:<1.[0]> but was:<1.[1]>



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to