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

Need better exception handling in RCFile tolerate corruptions mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The exception handling in nextKeyValueTolerateCorruptions treats IOException as follows:

      • if EOFException, corrupt, can be tolerated
      • If CheckSumException, corrupt, can be tolerated
      • else not a corruption, re-throw

      But the compression code can also throw IOException in case of corruption, which will get re-thrown in this case.

      The correct way of handling IOException is:

      • if BlockMissingException, re-throw.
      • if not BlockMissingException -> corruption, can be tolerated

        Attachments

        1. HIVE-2660.patch
          2 kB
          Ramkumar Vadali
        2. HIVE-2660.1.patch
          2 kB
          Ramkumar Vadali

          Activity

            People

            • Assignee:
              rvadali Ramkumar Vadali
              Reporter:
              rvadali Ramkumar Vadali
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: