Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6005

Fix TestGracefulShutdown tests to skip check for loopback address usage in distributed mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.12.0
    • 1.14.0
    • None

    Description

      After DRILL-4286 changes some of the newly added unit tests fail with

      Drillbit is disallowed to bind to loopback address in distributed mode.
      

      List of failed tests:

      Tests in error: 
        TestGracefulShutdown.testOnlineEndPoints:96 » IllegalState Cluster fixture set...
        TestGracefulShutdown.testStateChange:130 » IllegalState Cluster fixture setup ...
        TestGracefulShutdown.testRestApi:167 » IllegalState Cluster fixture setup fail...
        TestGracefulShutdown.testRestApiShutdown:207 » IllegalState Cluster fixture se...
      

      This can be fixed if /etc/hosts file is edited.
      Source - https://stackoverflow.com/questions/40506221/how-to-start-drillbit-locally-in-distributed-mode

      Though these changes are required on production during running unit tests I don't think this check should be enforced.

      For documentation
      drill.exec.allow_loopback_address_binding -> Allow drillbit to bind to loopback address in distributed mode. Enabled only for testing purposes.

      Attachments

        Issue Links

          Activity

            People

              vdonapati Venkata Jyothsna Donapati
              arina Arina Ielchiieva
              Arina Ielchiieva Arina Ielchiieva
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: