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

RM: Drillbits fail with "No enum constant QueueSelectionPolicy.SelectionPolicy.bestfit"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.16.0
    • Execution - Flow
    • master + changes to enable RM

    Description

      A sample configuration for RM with value bestfit for queue_selection_policy fails with

      	at org.apache.drill.exec.resourcemgr.config.ResourcePoolTreeImpl.<init>(ResourcePoolTreeImpl.java:82) ~[drill-java-exec-1.16.0-SNAPSHOT.jar:1.16.0-SNAPSHOT]
      	at org.apache.drill.exec.resourcemgr.config.ResourcePoolTreeImpl.<init>(ResourcePoolTreeImpl.java:63) ~[drill-java-exec-1.16.0-SNAPSHOT.jar:1.16.0-SNAPSHOT]
      	at org.apache.drill.exec.work.foreman.rm.DistributedResourceManager.<init>(DistributedResourceManager.java:46) ~[drill-java-exec-1.16.0-SNAPSHOT.jar:1.16.0-SNAPSHOT]
      	... 6 common frames omitted
      Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy.SelectionPolicy.bestfit
      	at java.lang.Enum.valueOf(Enum.java:238) ~[na:1.8.0_181]
      	at org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy$SelectionPolicy.valueOf(QueueSelectionPolicy.java:32) ~[drill-java-exec-1.16.0-SNAPSHOT.jar:1.16.0-SNAPSHOT]
      	at org.apache.drill.exec.resourcemgr.config.ResourcePoolTreeImpl.<init>(ResourcePoolTreeImpl.java:74) ~[drill-java-exec-1.16.0-SNAPSHOT.jar:1.16.0-SNAPSHOT]
      	... 8 common frames omitted
      

      The issue here seems to be the case mismatch between bestfit and enum constant BESTFIT. Hence SelectionPolicy.valueOf does not find bestfit.

      Attachments

        Issue Links

          Activity

            People

              shamirwasia Sorabh Hamirwasia
              aravi5 Abhishek Ravi
              Hanumath Rao Maduri Hanumath Rao Maduri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: