You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Ahmed Hussein (Jira)" <ji...@apache.org> on 2020/11/10 17:48:00 UTC
[jira] [Created] (HDFS-15678) TestDFSOutputStream#testCloseTwice
implementation is broken
Ahmed Hussein created HDFS-15678:
------------------------------------
Summary: TestDFSOutputStream#testCloseTwice implementation is broken
Key: HDFS-15678
URL: https://issues.apache.org/jira/browse/HDFS-15678
Project: Hadoop HDFS
Issue Type: Bug
Components: dfs
Reporter: Ahmed Hussein
Assignee: Ahmed Hussein
[~daryn] noticed that the test {{TestDFSOutputStream#testCloseTwice}} was "cheating" by relying on incorrect behavior to pass. It closes a stream, injects an exception into the stream, closes and verifies injected exception is thrown, closes again and verifies no exception. The problem is a closed stream must never throw again so the injection should be a no-op.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org