hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik Kambatla (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9637) Tests for RollingFileSystemSink
Date Wed, 10 Feb 2016 18:20:18 GMT

    [ https://issues.apache.org/jira/browse/HDFS-9637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141384#comment-15141384
] 

Karthik Kambatla commented on HDFS-9637:
----------------------------------------

Committed this to trunk. 

On branch-2, one of the newly added tests fails:
{noformat}
Running org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 39.088 sec <<< FAILURE!
- in org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs
testFailedClose(org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs)  Time elapsed:
1.385 sec  <<< ERROR!
org.apache.hadoop.metrics2.MetricsException: org.apache.hadoop.metrics2.MetricsException:
Unable to close log file: hdfs://localhost:51275/tmp/2016021018/testsrc-saya.local.log
	at org.apache.hadoop.metrics2.sink.RollingFileSystemSink.checkForErrors(RollingFileSystemSink.java:512)
	at org.apache.hadoop.metrics2.sink.RollingFileSystemSink.close(RollingFileSystemSink.java:488)
	at org.apache.hadoop.metrics2.sink.RollingFileSystemSinkTestBase$ErrorSink.close(RollingFileSystemSinkTestBase.java:498)
	at org.apache.hadoop.io.IOUtils.cleanup(IOUtils.java:245)
	at org.apache.hadoop.metrics2.impl.MetricsSinkAdapter.stop(MetricsSinkAdapter.java:213)
	at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.stopSinks(MetricsSystemImpl.java:471)
	at org.apache.hadoop.metrics2.impl.MetricsSystemImpl.stop(MetricsSystemImpl.java:214)
	at org.apache.hadoop.metrics2.sink.TestRollingFileSystemSinkWithHdfs.testFailedClose(TestRollingFileSystemSinkWithHdfs.java:183)
{noformat}

> Tests for RollingFileSystemSink
> -------------------------------
>
>                 Key: HDFS-9637
>                 URL: https://issues.apache.org/jira/browse/HDFS-9637
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 2.7.1
>            Reporter: Daniel Templeton
>            Assignee: Daniel Templeton
>         Attachments: HDFS-9637.001.patch, HDFS-9637.002.patch, HDFS-9637.003.patch, HDFS-9637.004.patch,
HDFS-9637.005.patch, HDFS-9637.006.patch
>
>
> Per discussion on the dev list, the tests for the new FileSystemSink class should be
added to the HDFS project to avoid creating a dependency for the common project on the HDFS
project.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message