Hive
  1. Hive
  2. HIVE-7180

BufferedReader is not closed in MetaStoreSchemaInfo ctor

    Details

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

      Description

      Here is related code:

            BufferedReader bfReader =
              new BufferedReader(new FileReader(upgradeListFile));
            String currSchemaVersion;
            while ((currSchemaVersion = bfReader.readLine()) != null) {
              upgradeOrderList.add(currSchemaVersion.trim());
      

      BufferedReader / FileReader should be closed upon return from ctor.

      1. HIVE-7180.patch
        1 kB
        skrho
      2. HIVE-7180_001.patch
        2 kB
        skrho

        Activity

        skrho made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        skrho made changes -
        Attachment HIVE-7180_001.patch [ 12666463 ]
        skrho made changes -
        Assignee Swarnim Kulkarni [ swarnim ] skrho [ rsk13th ]
        Ashutosh Chauhan made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        skrho made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.13.1 [ 12326829 ]
        Labels patch
        skrho made changes -
        Attachment HIVE-7180.patch [ 12665750 ]
        Swarnim Kulkarni made changes -
        Field Original Value New Value
        Assignee Swarnim Kulkarni [ swarnim ]
        Ted Yu created issue -

          People

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

            Dates

            • Created:
              Updated:

              Development