Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-493

Unclosed DataInputBuffer in IOUtils#deserialize()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.7
    • None
    • None

    Description

          DataInputBuffer buffer = new DataInputBuffer();
          buffer.reset(in, in.length);
          return deserialize(conf, buffer, obj);
      

      buffer should be closed upon return from the method.

      In serialize(), there is similar problem for DataOutputBuffer.

      Attachments

        1. GORA-493.v1.patch
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: