Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1816

sleeps should be replaced with polling when waiting for cluster to start in tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • TEST - Test Framework
    • None

    Description

      e.g. NCServiceIT

      cluster.addNCService(
      new File(RESOURCE_DIR, "nc-red.conf"),
      new File(LOG_DIR, "nc-red.log")
      );
      cluster.addNCService(
      new File(RESOURCE_DIR, "nc-blue.conf"),
      new File(LOG_DIR, "nc-blue.log")
      );

      try

      { Thread.sleep(2000); }

      catch (InterruptedException ignored) {
      }

      // Start CC
      cluster.start(
      new File(RESOURCE_DIR, "cc.conf"),
      new File(LOG_DIR, "cc.log")
      );

      try

      { Thread.sleep(10000); }

      catch (InterruptedException ignored) {
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            mblow Michael Blow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: