[
https://issues.apache.org/jira/browse/HBASE-25117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wellington Chevreuil updated HBASE-25117:
-----------------------------------------
Fix Version/s: 2.2.7
2.4.0
2.3.3
3.0.0-alpha-1
> ReplicationSourceShipper thread can not be finished
> ---------------------------------------------------
>
> Key: HBASE-25117
> URL: https://issues.apache.org/jira/browse/HBASE-25117
> Project: HBase
> Issue Type: Bug
> Affects Versions: 3.0.0-alpha-1, 2.4.0, 2.2.6, 2.3.2
> Reporter: Sun Xin
> Assignee: Sun Xin
> Priority: Major
> Fix For: 3.0.0-alpha-1, 2.3.3, 2.4.0, 2.2.7
>
>
> See [Flaky
> Tests|https://ci-hadoop.apache.org/job/HBase/job/HBase-Flaky-Tests/job/master/161/console],
> some UTs about replication failed cause timeout.
> In
> [HBaseInterClusterReplicationEndpoint.sleepForRetries|https://github.com/apache/hbase/blob/78ae1f176d4215dcc34067ed25d786a4fcd4d888/hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/HBaseInterClusterReplicationEndpoint.java#L203],
> InterruptedException is caught but no further processing, the interrupted
> status of the current thread is cleared.
> Below is the code comment of Thread.sleep.
> {code:java}
> /**
> * ...
> *
> * @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;
> {code}
> So InterruptedException must be processed, otherwise ReplicationSourceShipper
> thread cannot be terminated in some cases.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)