guihecheng opened a new pull request #2290:
URL: https://github.com/apache/ozone/pull/2290
## What changes were proposed in this pull request?
Ensure disk checker also scans the ratis log disks periodically.
To do so, I did some refactoring work, and then add ratis log disks to disk
checker.
Here is a checklist:
**Done**:
- Introduce a base class `StorageVolume` and let `HddsVolume` extends it.
VolumeInfo and disk check stuff are extracted into `StorageVolume`
- Introduce a sub class `MetadataVolume` extends `StorageVolume`,
so it shares the VolumeInfo and disk check stuff.
- Migrate ratisVolumeMap from `XceiverServerRatis` to `MutableVolumeSet`,
so we mange all kinds of volumes together.
- The config 'failed.volumes.tolerated' takes failed metadata volumes into
consideration.
- Add VolumeInfo related fields into `MetadataStorageReportProto`,
so SCM could get space info from datanodes.
**Not Done**:
- Handle the case that `MetadataVolume` and `HddsVolume` are on the same
physical disk,
so for now failed volumes may be double counted.
- Try to check a single failed `MetadataVolume` on log failure.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5268
## How was this patch tested?
Exisiting unit-tests and integration-tests.
To add more tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]