You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2017/04/12 15:00:45 UTC

[jira] [Commented] (OAK-6065) Rework CheckpointTest and MergeTest after introducing the scheduler

    [ https://issues.apache.org/jira/browse/OAK-6065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966002#comment-15966002 ] 

Michael Dürig commented on OAK-6065:
------------------------------------

Thanks for the patch. A couple of comments:
* Why removing {{MergeTest#testOptimisticMerge}}? 
* I'm fine with removing {{MergeTest#testPessimisticMerge}}. But let's do it within OAK-6074.
* I like the approach of moving the checkpoint tests to the lock based scheduler. This is where they belong now. I would rather prefer though if we wouldn't have to expose {{LockBasedScheduler.locked()}}. An alternative way to write these tests is to concurrently schedule a commit that block until the {{checkpoint}} method timed out. Pretty much what we have in {{MergeTest#testPessimisticMerge}}. With this we could even inline the remaining single call to {{locked}}. 

> Rework CheckpointTest and MergeTest after introducing the scheduler 
> --------------------------------------------------------------------
>
>                 Key: OAK-6065
>                 URL: https://issues.apache.org/jira/browse/OAK-6065
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: segment-tar
>            Reporter: Andrei Dulceanu
>            Assignee: Andrei Dulceanu
>            Priority: Minor
>             Fix For: 1.8, 1.7.3
>
>         Attachments: OAK-6065.patch
>
>
> Replacing the commit semaphore with the scheduler in OAK-4122, made some tests in {{MergeTest}} and {{CheckpointTest}} obsolete, since they made use of implementation details now unavailable in the segment store. These concerns, like {{maximumBackoff}} and {{checkpointsLockWaitTime}} are now configurable in {{LockBasedScheduler}}. For the moment, the tests should be changed to work with the current scheduler, but in the future, with the introduction of new scheduler types, they might become obsolete as well.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)