Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1125

IPC client fails to override the close method for FilterOutputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12.0
    • None
    • ipc
    • None

    Description

      Classes that extend FilterOutputStream and BufferedOutputStream must override the close method because the default implementation ignores IOExceptions that occur during the flush method. This has caused us to lose critical information about the sources of errors. sigh While looking over the code base for such problems, I found the code in IPC Client.java with this problem.

      More generally, we should probably have util classes that replace the Java ones that have a better default for close. (and a better default for FilterOutputStream.write(byte[], int, int) too...)

      Attachments

        Activity

          People

            omalley Owen O'Malley
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: