Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Once a container replica is marked unhealthy by the scanner, it would be helpful for debugging to persist why the container was marked unhealthy. Just logging to the main datanode log will eventually roll off and would require more filtering to figure out what happened.
Reasons for marking unhealthy include:
- Corrupted block (and which block was corrupted)
- Corrupted container metadata file
- Volume failure
Some options for persisting the information are:
- Into the .container file itself.
- May not work if the container file is corrupted.
- To the datanode audit log
- Would get mixed up with client operations like put block.
- To a different file within the container
- This could be used to track the entire lifecycle of the container, like when it was created, closed, replicated, and marked unhealthy.
- To a dedicated log4j logger that can be configured to go to a different file.
Attachments
Attachments
Issue Links
- is fixed by
-
HDDS-9002 Container log should write to separate file
- Resolved
- links to