Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4816

DfsLogger.readHeaderAndReturnStream should return a Closeable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      With the change in https://github.com/apache/accumulo/pull/369, it reveals that there's a possible unclosed resource hidden in the object returned from DfsLogger.readHeaderAndReturnStream. This should return something which is a Closeable, so it can be used in a try-with-resources block and cleaned up properly just in case the extra stream allocates additional resources which need to be closed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ctubbsii Christopher Tubbs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: