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

[jira] [Updated] (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 ]

Reid Chan updated HBASE-25024:
------------------------------
    Description: 
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}

  was:Sometimes threads could finish faster than interrupt() gets called. 


> [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
>             Fix For: 1.7.0
>
>
> 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}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)