[
https://issues.apache.org/jira/browse/HDFS-16176?focusedWorklogId=638979&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-638979
]
ASF GitHub Bot logged work on HDFS-16176:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 18/Aug/21 06:26
Start Date: 18/Aug/21 06:26
Worklog Time Spent: 10m
Work Description: ayushtkn commented on a change in pull request #3306:
URL: https://github.com/apache/hadoop/pull/3306#discussion_r690936357
##########
File path:
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestUnsetAndChangeDirectoryEcPolicy.java
##########
@@ -388,4 +390,31 @@ public void testUnsetEcPolicyInEditLog() throws
IOException {
cluster.restartNameNode(true);
Assert.assertNull(fs.getErasureCodingPolicy(new Path("/")));
}
+
+ /*
+ * Test Client unset EC policy on directory.
+ */
+ @Test
+ public void testClientUnsetEcPolicy() throws Exception {
+ ClientProtocol clientProtocol = fs.getClient().getNamenode();
+
clientProtocol.setErasureCodingPolicy("/",ErasureCodeConstants.REPLICATION_POLICY_NAME);
+ final String dirString = "/striped";
+ clientProtocol.mkdirs(dirString, null, false);
Review comment:
It gave me a NPE here.
I changed it to
``
fs.mkdirs(new Path(dirString));
``
to make it work.
But this test passes without your fix as well. So, this isn't reproducing
the issue
--
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: 638979)
Time Spent: 0.5h (was: 20m)
> fix ec -unsetPolicy not success
> -------------------------------
>
> Key: HDFS-16176
> URL: https://issues.apache.org/jira/browse/HDFS-16176
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: ec
> Reporter: [email protected]
> Priority: Major
> Labels: pull-request-available
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> A directory explicitly set ecpolicy, use -unsetPolicy to remove the setting,
> but it has been unsuccessful. Expect to delete the setting successfully
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]