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

Ieran Draghiciu updated OAK-8703:
---------------------------------
    Description: 
Add the ability to configure the maximum number of request to be verify by the 
ConsistencyChecker:

Solution:
In *Check* builder added the *withMaxRevisionsToCheck(int 
maxRevisionsToCheck)*: Instruct the command to check only the last 
maxRevisionsToCheck
In *CheckCommand* added the option *maxRevisionsToCheck* with default value 1.
In *ConsistencyChecker* added the limitation to check only the 
@maxRevisionsToCheck:

{code:java}
if(maxRevisionsToCheck == revisionCount){
      break;
}
{code}

*Notes:*
if @maxRevisionsToCheck is configured 1 will check only the last revision. 
if @maxRevisionsToCheck is configured 2 will check up to 2 revisions. if the 
first revision is consistent will skip the second revision.

  was:
Add the ability to configure the maximum number of request to be verify by the 
ConsistencyChecker:

Solution:
In *Check* builder added the *withMaxRevisionsToCheck(int 
maxRevisionsToCheck)*: Instruct the command to check only the last 
maxRevisionsToCheck
In *CheckCommand* added the option *maxRevisionsToCheck* with default value 1.
In *ConsistencyChecker* added the limitation to check only the 
@maxRevisionsToCheck:

{code:java}
if(maxRevisionsToCheck == revisionCount){
      break;
}
{code}

Note: if @maxRevisionsToCheck is configured 1 will check only the last 
revision. 
          if @maxRevisionsToCheck is configured 2 will check up to 2 revisions. 
if the first revision is consistent will skip the second revision.


> Configure the maximum number of revisions to be checked by consistency check
> ----------------------------------------------------------------------------
>
>                 Key: OAK-8703
>                 URL: https://issues.apache.org/jira/browse/OAK-8703
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: oak-run, segment-tar
>            Reporter: Ieran Draghiciu
>            Assignee: Andrei Dulceanu
>            Priority: Major
>         Attachments: OAK-8703.patch
>
>
> Add the ability to configure the maximum number of request to be verify by 
> the ConsistencyChecker:
> Solution:
> In *Check* builder added the *withMaxRevisionsToCheck(int 
> maxRevisionsToCheck)*: Instruct the command to check only the last 
> maxRevisionsToCheck
> In *CheckCommand* added the option *maxRevisionsToCheck* with default value 1.
> In *ConsistencyChecker* added the limitation to check only the 
> @maxRevisionsToCheck:
> {code:java}
> if(maxRevisionsToCheck == revisionCount){
>       break;
> }
> {code}
> *Notes:*
> if @maxRevisionsToCheck is configured 1 will check only the last revision. 
> if @maxRevisionsToCheck is configured 2 will check up to 2 revisions. if the 
> first revision is consistent will skip the second revision.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to