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

Properly treating SocketTimeoutException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • 0.90.8
    • None
    • None

    Description

      SocketTimeoutException is currently treated like any IOE inside of HCM.getRegionServerWithRetries and I think this is a problem. This method should only do retries in cases where we are pretty sure the operation will complete, but with STE we already waited for (by default) 60 seconds and nothing happened.

      I found this while debugging Douglas Campbell's problem on the mailing list where it seemed like he was using the same scanner from multiple threads, but actually it was just the same client doing retries while the first run didn't even finish yet (that's another problem). You could see the first scanner, then up to two other handlers waiting for it to finish in order to run (because of the synchronization on RegionScanner).

      So what should we do? We could treat STE as a DoNotRetryException and let the client deal with it, or we could retry only once.

      There's also the option of having a different behavior for get/put/icv/scan, the issue with operations that modify a cell is that you don't know if the operation completed or not (same when a RS dies hard after completing let's say a Put but just before returning to the client).

      Attachments

        1. unittest_that_shows_us_retrying_sockettimeout.txt
          2 kB
          Michael Stack
        2. HBASE-4462_0.90.x.patch
          14 kB
          ramkrishna.s.vasudevan

        Activity

          People

            Unassigned Unassigned
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: