hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19337) AsyncMetaTableAccessor may hang when call ScanController.terminate many times
Date Sat, 25 Nov 2017 16:56:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-19337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265767#comment-16265767
] 

Hudson commented on HBASE-19337:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-Trunk_matrix #4116 (See [https://builds.apache.org/job/HBase-Trunk_matrix/4116/])
HBASE-19337 AsyncMetaTableAccessor may hang when call (zghao: rev f521000d7883e83943b948989f05bfe49d78f5db)
* (edit) hbase-client/src/main/java/org/apache/hadoop/hbase/AsyncMetaTableAccessor.java


> AsyncMetaTableAccessor may hang when call ScanController.terminate many times
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-19337
>                 URL: https://issues.apache.org/jira/browse/HBASE-19337
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>             Fix For: 3.0.0, 2.0.0-beta-1
>
>         Attachments: HBASE-19337.master.001.patch
>
>
> Code in ScanControllerImpl.
> {code}
>     private void preCheck() {
>       Preconditions.checkState(Thread.currentThread() == callerThread,
>         "The current thread is %s, expected thread is %s, " +
>             "you should not call this method outside onNext or onHeartbeat",
>         Thread.currentThread(), callerThread);
>       Preconditions.checkState(state.equals(ScanControllerState.INITIALIZED),
>         "Invalid Stopper state %s", state);
>     }
>     @Override
>     public void terminate() {
>       preCheck();
>       state = ScanControllerState.TERMINATED;
>     }
> {code}
> So if call terminate on a already terminated scan, it will throw IllegalStateException.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message