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

Chetan Mehrotra updated OAK-3818:
---------------------------------
    Description: 
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

  was:
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

This check can then we exposed as a JMX operation


> 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
>             Fix For: 1.4
>
>
> 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