devmadhuu commented on code in PR #12228:
URL: https://github.com/apache/ozone/pull/12228#discussion_r4785416398
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/block/BlockManagerImpl.java:
##########
@@ -200,6 +215,13 @@ public AllocatedBlock allocateBlock(final long size,
return null;
}
+ private static SCMException tierUnavailable(StoragePolicy storagePolicy,
List<StorageTier> tiersTried,
+ PlacementFailureReason reason, IOException cause) {
+ String message = "No capacity for storage policy " +
storagePolicy.getName() + " on storage tiers " + tiersTried
Review Comment:
"No capacity for storage policy … on storage tiers […]: " +
reason.getLabel() reads slightly contradictory when reason is no_suitable_node
("No capacity … : no_suitable_node"). Consider "Cannot place storage policy …
on tiers […]: " + label so it reads naturally for both no_space and
no_suitable_node.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]