Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5757

TableInputFormat should handle as many errors as possible

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.6
    • 0.94.1, 0.95.0
    • mapreduce
    • None
    • Reviewed

    Description

      Prior to HBASE-4196 there was different handling of IOExceptions thrown from scanner in mapred and mapreduce API. The patch to HBASE-4196 unified this handling so that if exception is caught a reconnect is attempted (without bothering the mapred client). After that, HBASE-4269 changed this behavior back, but in both mapred and mapreduce APIs. The question is, is there any reason not to handle all errors that the input format can handle? In other words, why not try to reissue the request after any IOException? I see the following disadvantages of current approach

      • the client may see exceptions like LeaseException and ScannerTimeoutException if he fails to process all fetched data in timeout
      • to avoid ScannerTimeoutException the client must raise hbase.regionserver.lease.period
      • timeouts for tasks is aready configured in mapred.task.timeout, so this seems to me a bit redundant, because typically one needs to update both these parameters
      • I don't see any possibility to get rid of LeaseException (this is configured on server side)

      I think all of these issues would be gone, if the DoNotRetryIOException would not be rethrown. On the other hand, handling errors in InputFormat has disadvantage, that it may hide from the user some inefficiency. Eg. if I have very big scanner.caching, and I manage to process only a few rows in timeout, I will end up with single row being fetched many times (and will not be explicitly notified about this). Could we solve this problem by adding some counter to the InputFormat?

      Attachments

        1. HBASE-5757-trunk-r1341041.patch
          9 kB
          Jan Lukavsky
        2. hbase-5757-92.patch
          7 kB
          Jonathan Hsieh
        3. HBASE-5757.patch
          2 kB
          Jan Lukavsky
        4. HBASE-5757.patch
          9 kB
          Jan Lukavsky
        5. 5757-trunk-v2.txt
          9 kB
          Ted Yu

        Issue Links

          Activity

            People

              je.ik Jan Lukavsky
              je.ik Jan Lukavsky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: