Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7180

BufferedReader is not closed in MetaStoreSchemaInfo ctor

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.13.1
    • Fix Version/s: 1.3.0, 2.0.0
    • Component/s: Metastore
    • Labels:
      None

      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.

        Attachments

        1. HIVE-7180_001.patch
          2 kB
          skrho
        2. HIVE-7180.3.patch
          2 kB
          Alexander Pivovarov
        3. HIVE-7180.4.patch
          1 kB
          Alexander Pivovarov
        4. HIVE-7180.patch
          1 kB
          skrho

          Activity

            People

            • Assignee:
              apivovarov Alexander Pivovarov
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: