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 "Andrei Dulceanu (Jira)" <ji...@apache.org> on 2019/10/28 14:29:00 UTC
[jira] [Commented] (OAK-8719) Oak run check command must return the
status of repository consistency check
[ https://issues.apache.org/jira/browse/OAK-8719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16961091#comment-16961091 ]
Andrei Dulceanu commented on OAK-8719:
--------------------------------------
[~ierandra], I'd prefer to not add the new {{isRepositoryConsistent}} instance variable, because it's kind of useless. Rather, I'd like to make the actual {{run}} method [0] inside {{Check}} return a suitable exit code which would be used by the calling method for reporting success/failure.
[0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/tool/Check.java#L400
> Oak run check command must return the status of repository consistency check
> ----------------------------------------------------------------------------
>
> Key: OAK-8719
> URL: https://issues.apache.org/jira/browse/OAK-8719
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Reporter: Ieran Draghiciu
> Assignee: Andrei Dulceanu
> Priority: Major
> Labels: oak-run, segment-tar
> Attachments: OAK-8719.patch
>
>
> Currently the consistency check reports only if the command runs successfully (return code 0) or fails (return code 1).
> Into this logic will also add the status of repository consistency:
> - checking only the last revision: will return 0 if the revision is consistent and the command runs successfully OR will return 1 if the revision is inconsistent or job did not run successfully (some errors/exception were encountered during the run)
> - checking multiple revisions: will return 0 if at least one revision is consistent and the job runs successfully OR will return 1 if none of the revisions are consistent or the command did not run successfully (some errors/exception were encounter during the run)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)