[
https://issues.apache.org/jira/browse/HDFS-9196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Masatake Iwasaki updated HDFS-9196:
-----------------------------------
Attachment: HDFS-9196.001.patch
The cause is the change of WebHdfsFileSystem by HDFS-8979. Attached patch
revert the 1 line.
{noformat}
@@ -207,7 +212,7 @@ public synchronized void initialize(URI uri, Configuration
conf
failoverSleepMaxMillis);
}
- this.workingDir = makeQualified(new Path(getHomeDirectoryString(ugi)));
+ this.workingDir = makeQualified(getHomeDirectory());
this.canRefreshDelegationToken = UserGroupInformation.isSecurityEnabled();
this.disallowFallbackToInsecureCluster = !conf.getBoolean(
CommonConfigurationKeys.IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY,
{noformat}
QA build seems not able to detect this bug because fixing WebHdfsFileSystem in
hadoop-hdfs-client does not result in checking TestWebHdfsContentLength is in
hadoop-hdfs.
> TestWebHdfsContentLength fails on trunk
> ---------------------------------------
>
> Key: HDFS-9196
> URL: https://issues.apache.org/jira/browse/HDFS-9196
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Tsuyoshi Ozawa
> Assignee: Masatake Iwasaki
> Attachments: HDFS-9196.001.patch
>
>
> {quote}
> Tests run: 7, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 181.278 sec
> <<< FAILURE! - in org.apache.hadoop.hdfs.web.TestWebHdfsContentLength
> testPutOp(org.apache.hadoop.hdfs.web.TestWebHdfsContentLength) Time elapsed:
> 60.05 sec <<< FAILURE!
> java.lang.AssertionError: expected:<0> but was:<null>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:743)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at
> org.apache.hadoop.hdfs.web.TestWebHdfsContentLength.testPutOp(TestWebHdfsContentLength.java:116)
> testPutOpWithRedirect(org.apache.hadoop.hdfs.web.TestWebHdfsContentLength)
> Time elapsed: 0.01 sec <<< FAILURE!
> org.junit.ComparisonFailure: expected:<[chunked]> but was:<[0]>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at
> org.apache.hadoop.hdfs.web.TestWebHdfsContentLength.testPutOpWithRedirect(TestWebHdfsContentLength.java:130)
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)