Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25024

[Flake Test][branch-1] TestClientOperationInterrupt#testInterrupt50Percent

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Sometimes threads could finish faster before interrupt() gets called.

            // ...
            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();
          }
      

      So this test could get failed sometimes.

      Attachments

        Activity

          People

            Unassigned Unassigned
            reidchan Reid Chan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: