[ 
https://issues.apache.org/jira/browse/HDFS-16515?focusedWorklogId=746298&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-746298
 ]

ASF GitHub Bot logged work on HDFS-16515:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Mar/22 01:50
            Start Date: 23/Mar/22 01:50
    Worklog Time Spent: 10m 
      Work Description: xinglin commented on a change in pull request #4089:
URL: https://github.com/apache/hadoop/pull/4089#discussion_r832768475



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirErasureCodingOp.java
##########
@@ -168,8 +168,8 @@ static FileStatus setErasureCodingPolicy(final FSNamesystem 
fsn,
       throw new FileNotFoundException("Path not found: " + srcIIP.getPath());
     }
     if (!inode.isDirectory()) {
-      throw new IOException("Attempt to set an erasure coding policy " +
-          "for a file " + src);
+      throw new IOException("Cannot set an erasure coding policy " +
+          "for a file " + src + ". Expected to be a directory");

Review comment:
       nit: "Expected to be a directory" -> "Erasure coding policy can only be 
set for directories."




-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 746298)
    Time Spent: 1h  (was: 50m)

> improve set ec error message
> ----------------------------
>
>                 Key: HDFS-16515
>                 URL: https://issues.apache.org/jira/browse/HDFS-16515
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>    Affects Versions: 3.3.2
>            Reporter: guophilipse
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Currently, if we set an erasure coding policy for a file,it only shows the 
> following message, which is not that clear, we can improve it.
> {code:java}
> RemoteException: Attempt to set an erasure coding policy for a file 
> /ns-test1/test20211026/testec {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to