Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15646 Track failing tests in HDFS
  3. HDFS-15678

TestDFSOutputStream#testCloseTwice implementation is broken

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • dfs
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              ahussein Ahmed Hussein
              ahussein Ahmed Hussein
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: