[
https://issues.apache.org/jira/browse/OAK-7918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16698967#comment-16698967
]
Francesco Mari commented on OAK-7918:
-------------------------------------
In the second version of the patch I rearranged the code to highlight the input
and output parameters of {{ConsistencyCheckerTemplate}}. This resulted in less
cruft in {{ConsistencyCheckerTemplate}} and in the definition of
{{ConsistencyCheckResult}} to contain the output of the consistency check.
Finally, I slightly simplified {{ConsistencyCheckerTemplate}} by removing some
unnecessary code.
> Extract checking logic from ConsistencyChecker
> -----------------------------------------------
>
> Key: OAK-7918
> URL: https://issues.apache.org/jira/browse/OAK-7918
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-tar
> Reporter: Francesco Mari
> Assignee: Francesco Mari
> Priority: Major
> Fix For: 1.10
>
> Attachments: OAK-7918-01.patch, OAK-7918-02.patch
>
>
> {{ConsistencyChecker}} mixes both the logic proper to a consistency check and
> reporting and debug statements. Moreover, it is not possible to retrieve
> programmatically the result of a consistency check, making it impossible to
> reuse this class in another context. The logic for a consistency check should
> be extracted to separate class.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)