ramesh0201 commented on a change in pull request #1768: HADOOP-16769.
LocalDirAllocator to provide diagnostics when file creation fails
URL: https://github.com/apache/hadoop/pull/1768#discussion_r363555060
##########
File path:
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java
##########
@@ -532,4 +532,23 @@ public void testGetLocalPathForWriteForInvalidPaths()
throws Exception {
}
}
+ /**
+ * Test to check the LocalDirAllocation for the less space HADOOP-16769
+ *
+ * @throws Exception
+ */
+ @Test(timeout = 30000)
+ public void testGetLocalPathForWriteForLessSpace() throws Exception {
+ String dir0 = buildBufferDir(ROOT, 0);
+ String dir1 = buildBufferDir(ROOT, 1);
+ conf.set(CONTEXT, dir0 + "," + dir1);
+ try {
+ dirAllocator.getLocalPathForWrite("p1/x", 3_000_000_000_000L, conf);
Review comment:
Sorry I missed updating the pull request. I have a new code change that uses
Long.MAX_VALUE, instead of this hardcoded number and then use a regex to match
the error message. I will create a new pull request
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]