[ 
https://issues.apache.org/jira/browse/DRILL-7140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806703#comment-16806703
 ] 

ASF GitHub Bot commented on DRILL-7140:
---------------------------------------

vvysotskyi commented on issue #1720: DRILL-7140: RM: Drillbits fail with "No 
enum constant org.apache.dril…
URL: https://github.com/apache/drill/pull/1720#issuecomment-478555853
 
 
   @HanumathRao, in future, when approving the PR, please check that Jira is in 
Reviewable state and please add `ready-to-commit` label, so the Jira will be 
present in the list of Jiras, ready to be merged.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> RM: Drillbits fail with "No enum constant 
> org.apache.drill.exec.resourcemgr.config.selectionpolicy.QueueSelectionPolicy.SelectionPolicy.bestfit"
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DRILL-7140
>                 URL: https://issues.apache.org/jira/browse/DRILL-7140
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Flow
>    Affects Versions: 2.0.0
>         Environment: master + changes to enable RM
>            Reporter: Abhishek Ravi
>            Assignee: Sorabh Hamirwasia
>            Priority: Major
>              Labels: ready-to-commit
>             Fix For: 2.0.0
>
>
> A sample configuration for RM with value *{{bestfit}}* for 
> *{{queue_selection_policy}}* fails with
> {noformat}
>       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
> {noformat}
> The issue here seems to be the case mismatch between *{{bestfit}}* and enum 
> constant *{{BESTFIT}}*. Hence {{SelectionPolicy.valueOf}} does not find 
> *{{bestfit}}*.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to