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

JsonGenerator in Configuration#dumpConfiguration() is not closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • conf

    Description

          JsonGenerator dumpGenerator = dumpFactory.createJsonGenerator(out);
      

      dumpGenerator is not closed in Configuration#dumpConfiguration()

      Looking at the source code of org.codehaus.jackson.impl.WriterBasedGenerator#close(), there is more than flushing the buffer.

      Attachments

        1. HADOOP-10364.patch
          0.6 kB
          Sanghyun Yun
        2. HADOOP-10364.2.patch
          3 kB
          Sanghyun Yun

        Activity

          People

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

            Dates

              Created:
              Updated: