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

Need better exception handling in RCFile tolerate corruptions mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0
    • Query Processor
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: