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

Reduce duration of sleep waiting for region reopen in IntegrationTestBulkLoad#installSlowingCoproc()

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      Currently we have the following code:

          desc.addCoprocessor(SlowMeCoproScanOperations.class.getName());
          HBaseTestingUtility.modifyTableSync(admin, desc);
          //sleep for sometime. Hope is that the regions are closed/opened before
          //the sleep returns. TODO: do this better
          Thread.sleep(30000);
      

      Instead of sleeping for fixed duration, we should detect when the regions have reopened with custom Coprocessor.

      Attachments

        1. 16418.v1.txt
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: