Skip to content

HDDS-14862. Log volume failures and database errors as errors#9950

Draft
ptlrs wants to merge 1 commit intoapache:masterfrom
ptlrs:HDDS-14862-Log-volume-failures-as-errors
Draft

HDDS-14862. Log volume failures and database errors as errors#9950
ptlrs wants to merge 1 commit intoapache:masterfrom
ptlrs:HDDS-14862-Log-volume-failures-as-errors

Conversation

@ptlrs
Copy link
Contributor

@ptlrs ptlrs commented Mar 19, 2026

What changes were proposed in this pull request?

Volume failure is currently logged at INFO level. It should be marked as an ERROR as a volume failing is an actual problem in the system and also searching for ERRORs in the log files should flag this.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14862

How was this patch tested?

CI: https://github.com/ptlrs/ozone/actions/runs/23277693312

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ptlrs for working on this.

dbLoaded.set(false);
dbLoadFailure.set(false);
LOG.info("SchemaV3 db is stopped at {} for volume {}", containerDBPath,
LOG.warn("SchemaV3 db is stopped at {} for volume {}", containerDBPath,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closeDbStore() is executed in normal shutdown, too, so this shouldn't be a warning. For failure case, warning is logged in callers of failVolume.

volumeHealthMetrics.decrementHealthyVolumes();
volumeHealthMetrics.incrementFailedVolumes();
LOG.info("Moving Volume : {} to failed Volumes", volumeRoot);
LOG.error("Moving Volume : {} to failed Volumes", volumeRoot);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not an error. Callers of failVolume log at higher level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants