You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2022/08/02 09:11:00 UTC

[jira] [Resolved] (HBASE-25024) [Flake Test][branch-1] TestClientOperationInterrupt#testInterrupt50Percent

     [ https://issues.apache.org/jira/browse/HBASE-25024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Duo Zhang resolved HBASE-25024.
-------------------------------
    Resolution: Won't Fix

> [Flake Test][branch-1] TestClientOperationInterrupt#testInterrupt50Percent
> --------------------------------------------------------------------------
>
>                 Key: HBASE-25024
>                 URL: https://issues.apache.org/jira/browse/HBASE-25024
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Reid Chan
>            Priority: Minor
>
> Sometimes threads could finish faster before interrupt() gets called. 
> {code}
>       // ...
>       t.start();
>     }
>     int expectedNoExNum = nbThread / 2;
>     for (int i = 0; i < nbThread / 2; i++) {
>       if (threads.get(i).getState().equals(Thread.State.TERMINATED)) {
>         expectedNoExNum--;
>       }
>       threads.get(i).interrupt();
>     }
> {code}
> So this test could get failed sometimes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)