Skip to content

Commit

Permalink
HDDS-11243. Fix CheckStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Aug 4, 2024
1 parent fcdcf76 commit 871ded5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void onMessage(final ContainerReportFromDatanode reportFromDatanode,
// list
processMissingReplicas(datanodeDetails, expectedContainersInDatanode);
containerManager.notifyContainerReportProcessing(true, true);
if(reportFromDatanode.isRegister()) {
if (reportFromDatanode.isRegister()) {
publisher.fireEvent(SCMEvents.CONTAINER_REGISTRATION_REPORT,
new SCMDatanodeProtocolServer.NodeRegistrationContainerReport(datanodeDetails,
reportFromDatanode.getReport()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class SCMEvents {
"Node_Registration_Container_Report");

/**
* Event generated on DataNode Registration Container Report
* Event generated on DataNode Registration Container Report.
*/
public static final TypedEvent<NodeRegistrationContainerReport>
CONTAINER_REGISTRATION_REPORT = new TypedEvent<>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ public String getStatusText() {
"safeModeCutoff (=%1.2f);" +
"%1.2f%% of [EC] Containers(%s / %s) with at least N reported replica (=%1.2f) >= " +
"safeModeCutoff (=%1.2f)",
(ratisContainerWithMinReplicas.doubleValue() / ratisMaxContainer) * 100,
(ratisContainerWithMinReplicas.doubleValue() / getRatisMaxContainer()) * 100,
ratisContainerWithMinReplicas, (long) getRatisMaxContainer(),
getCurrentContainerThreshold(), this.safeModeCutoff,
(ecContainerWithMinReplicas.doubleValue() / ecMaxContainer) * 100,
(ecContainerWithMinReplicas.doubleValue() / getEcMaxContainer()) * 100,
ecContainerWithMinReplicas, (long) getEcMaxContainer(),
getCurrentECContainerThreshold(), this.safeModeCutoff);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void initializeRule(boolean refresh) {
totalDataNode, requiredDns, registeredDns);
} else {
LOG.info("Total DataNode count is {} / threshold = {}, datanode reported count is {}.",
totalDataNode, requiredDns, registeredDns);
totalDataNode, requiredDns, registeredDns);
}
}
}

0 comments on commit 871ded5

Please sign in to comment.