Hadoop Common
  1. Hadoop Common
  2. HADOOP-10364

JsonGenerator in Configuration#dumpConfiguration() is not closed

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: conf
    • Labels:

      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.

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

        Activity

        Varun Saxena made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Varun Saxena made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Allen Wittenauer made changes -
        Labels BB2015-05-TBR
        Sanghyun Yun made changes -
        Attachment HADOOP-10364.2.patch [ 12665692 ]
        Sanghyun Yun made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Sanghyun Yun made changes -
        Attachment HADOOP-10364.patch [ 12662723 ]
        Ted Yu made changes -
        Field Original Value New Value
        Component/s conf [ 12310711 ]
        Ted Yu created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development