Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0-alpha-1, 2.4.0, 2.2.6, 2.3.2
-
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
- is broken by
-
HBASE-24813 ReplicationSource should clear buffer usage on ReplicationSourceManager upon termination
- Resolved
- links to