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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]