Hive
  1. Hive
  2. HIVE-2660

Need better exception handling in RCFile tolerate corruptions mode

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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
      1. HIVE-2660.1.patch
        2 kB
        Ramkumar Vadali
      2. HIVE-2660.patch
        2 kB
        Ramkumar Vadali

        Activity

        Ashutosh Chauhan made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Carl Steinbach made changes -
        Fix Version/s 0.9.0 [ 12317742 ]
        Namit Jain made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Ramkumar Vadali made changes -
        Attachment HIVE-2660.1.patch [ 12507669 ]
        Ramkumar Vadali made changes -
        Field Original Value New Value
        Attachment HIVE-2660.patch [ 12507666 ]
        Ramkumar Vadali created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development