ozone
ozone copied to clipboard
HDDS-7095. allow on demand scanning for containers
What changes were proposed in this pull request?
This is a draft pull request outline for enabling the on-demand scanner. The on-demand scanner will enable to check containers for checksum errors on the fly, next to the periodically run Metadata scanner and Full scanner.
What is the link to the Apache JIRA
How was this patch tested?
Added unit test for OnDemandContainerScanner, basic sanity tests were performed on a local cluster using docker.
Next steps regarding OnDemandContainerScanner:
Fix HDDS-7096 by adding a new exception type so that only this specific exception will mark containers unhealthy instead of all IO errors. Also place the on demand scan to a less general place similarly how the VolumeChecker works. Integration tests will be added by this pull request.