You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/06/10 12:59:00 UTC

[jira] [Updated] (AMBARI-22943) Wrong condition in FixCapacitySchedulerOrderingPolicy#execute()

     [ 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)