You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Xiao Liang (JIRA)" <ji...@apache.org> on 2018/05/10 09:39:00 UTC

[jira] [Created] (HADOOP-15454) TestRollingFileSystemSinkWithLocal fails on Windows

Xiao Liang created HADOOP-15454:
-----------------------------------

             Summary: TestRollingFileSystemSinkWithLocal fails on Windows
                 Key: HADOOP-15454
                 URL: https://issues.apache.org/jira/browse/HADOOP-15454
             Project: Hadoop Common
          Issue Type: Test
            Reporter: Xiao Liang
            Assignee: Xiao Liang


org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithLocal fails on Windows,

*Error message:*

Illegal character in opaque part at index 2: D:\_work\8\s\hadoop-common-project\hadoop-common\target\test\data\4\RollingFileSystemSinkTest\testSilentExistingWrite

*Stack trace:*

java.io.IOException: All datanodes [DatanodeInfoWithStorage[127.0.0.1:53235,DS-4d6119ac-31cc-4f48-8a5b-7f35b36a1c55,DISK]] are bad. Aborting... at org.apache.hadoop.hdfs.DataStreamer.handleBadDatanode(DataStreamer.java:1538) at org.apache.hadoop.hdfs.DataStreamer.setupPipelineForAppendOrRecovery(DataStreamer.java:1472) at org.apache.hadoop.hdfs.DataStreamer.processDatanodeError(DataStreamer.java:1244) at org.apache.hadoop.hdfs.DataStreamer.run(DataStreamer.java:663)

Drive letter in absolute path in Windows will fail the underlying URI check.

Another issue is that for the failed write test case java.io.File#setWritable(boolean, boolean) is used, which does not work as expected on Windows and should be replaced by org.apache.hadoop.fs.FileUtil#setWritable.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org