Skip to content

HDDS-11904. Fix HealthyPipelineSafeModeRule logic. #8386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Log all the bad DNs and their reasons in a single line.
  • Loading branch information
Aryan Gupta committed May 7, 2025
commit 1d226f0e3b39f2e2d5875c980d4c3bd3c95a0bc1
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ protected synchronized void process(Pipeline pipeline) {
}

if (!badDnsWithReasons.isEmpty()) {
LOG.warn("Below DNs reported by Pipeline: {} are either in bad health or un-registered with SCMs",
pipeline.getId());
for (Map.Entry<DatanodeDetails, String> entry : badDnsWithReasons.entrySet()) {
LOG.warn("DN {}: {}", entry.getKey().getID(), entry.getValue());
}
String badDnSummary = badDnsWithReasons.entrySet().stream()
.map(entry -> String.format("DN %s: %s", entry.getKey().getID(), entry.getValue()))
.collect(Collectors.joining("; "));
LOG.warn("Below DNs reported by Pipeline: {} are either in bad health or un-registered with SCMs. Details: {}",
pipeline.getId(), badDnSummary);
return;
}

Expand Down