You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by GitBox <gi...@apache.org> on 2021/05/26 02:51:22 UTC
[GitHub] [hadoop] tasanuma commented on a change in pull request #3052: HDFS-16041. TestErasureCodingCLI fails
tasanuma commented on a change in pull request #3052:
URL: https://github.com/apache/hadoop/pull/3052#discussion_r639364628
##########
File path: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
##########
@@ -466,7 +466,9 @@ private String formatSize(long size, boolean humanReadable) {
* @return Constant-width String representation of Erasure Coding Policy
*/
public String toErasureCodingPolicy() {
- return String.format(ERASURECODING_POLICY_FORMAT, erasureCodingPolicy);
+ return String.format(ERASURECODING_POLICY_FORMAT,
+ erasureCodingPolicy.equals("Replicated")
Review comment:
IIUC, `erasureCodingPolicy` is an empty string when it is replicated.
```suggestion
erasureCodingPolicy.isEmpty()
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org