[ 
https://issues.apache.org/jira/browse/AMBARI-22943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ted Yu updated AMBARI-22943:
----------------------------
    Description: 
{code}
      } else if (!orderingPolicyValue.equals(UTILIZATION) || 
!orderingPolicyValue.equals(PRIORITY_UTILIZATION)) {
{code}

Regardless of the value for orderingPolicyValue, the condition would be true.

  was:
{code}
      } else if (!orderingPolicyValue.equals(UTILIZATION) || 
!orderingPolicyValue.equals(PRIORITY_UTILIZATION)) {
{code}
Regardless of the value for orderingPolicyValue, the condition would be true.


> Wrong condition in FixCapacitySchedulerOrderingPolicy#execute()
> ---------------------------------------------------------------
>
>                 Key: AMBARI-22943
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22943
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Major
>
> {code}
>       } else if (!orderingPolicyValue.equals(UTILIZATION) || 
> !orderingPolicyValue.equals(PRIORITY_UTILIZATION)) {
> {code}
> Regardless of the value for orderingPolicyValue, the condition would be true.



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

Reply via email to