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

Chetan Mehrotra resolved OAK-3818.
----------------------------------
       Resolution: Duplicate
    Fix Version/s:     (was: 1.4)

Such a feature is already now in Oak with OAK-3184. 
org.apache.jackrabbit.oak.plugins.blob.BlobGCMBean#getConsistencyCheckStatus

> Provide a way to check if all blob references are valid 
> --------------------------------------------------------
>
>                 Key: OAK-3818
>                 URL: https://issues.apache.org/jira/browse/OAK-3818
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: blob
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>
> For sanity and health check it would be good to have a way to check if all 
> blob references are valid i.e. there are no orphan references in the 
> repository.
> We have most of logic in current BlobStore GC logic. So just need a way
> # Iterate over whole repository and collect blob references
> # Iterate over whole BlobStore and collect blob entries
> # Compare the two and entries which are present in #1 and not in #2 would be 
> considered as orphan
> Apart from check this job can also generate a report
> # Total size of valid blobs
> # Total size of garabage
> This check can then we exposed as a JMX operation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to