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

ReplicationSourceShipper thread can not be finished

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.4.0, 2.2.6, 2.3.2
    • 3.0.0-alpha-1, 2.3.3, 2.4.0, 2.2.7
    • None
    • None

    Description

      See Flaky Tests, some UTs about replication failed cause timeout.

      In HBaseInterClusterReplicationEndpoint.sleepForRetries, InterruptedException is caught but no further processing, the interrupted status of the current thread is cleared.

      Below is the code comment of Thread.sleep.

      /**
       * ...
       *
       * @throws  InterruptedException
       *          if any thread has interrupted the current thread. The
       *          <i>interrupted status</i> of the current thread is
       *          cleared when this exception is thrown.
       */
      public static native void sleep(long millis) throws InterruptedException;
      

      So InterruptedException must be processed, otherwise ReplicationSourceShipper thread cannot be terminated in some cases.

      Attachments

        Issue Links

          Activity

            People

              Ddupg Sun Xin
              Ddupg Sun Xin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: