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

PreUpgradeTool can fail because access to CharsetDecoder is not synchronized

    XMLWordPrintableJSON

    Details

      Description

      2020-02-26 20:22:49,683 ERROR [main] acid.PreUpgradeTool (PreUpgradeTool.java:main(150)) - PreUpgradeTool failed org.apache.hadoop.hive.ql.metadata.HiveException at org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool.prepareAcidUpgradeInternal(PreUpgradeTool.java:283) at org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool.main(PreUpgradeTool.java:146) Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED
      ...
      Caused by: java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED at java.nio.charset.CharsetDecoder.throwIllegalStateException(CharsetDecoder.java:992) at java.nio.charset.CharsetDecoder.flush(CharsetDecoder.java:675) at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:804) at org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool.needsCompaction(PreUpgradeTool.java:606) at org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool.needsCompaction(PreUpgradeTool.java:567) at org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool.getCompactionCommands(PreUpgradeTool.java:464) at org.apache.hadoop.hive.upgrade.acid.PreUpgradeTool.processTable(PreUpgradeTool.java:374)
      

      This is probably caused by HIVE-21948.

        Attachments

        1. HIVE-22955.2.patch
          13 kB
          Hankó Gergely
        2. HIVE-22955.1.patch
          4 kB
          Hankó Gergely

          Issue Links

            Activity

              People

              • Assignee:
                ghanko Hankó Gergely
                Reporter:
                ghanko Hankó Gergely
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m