You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "kyungwan nam (JIRA)" <ji...@apache.org> on 2017/05/19 07:20:04 UTC

[jira] [Created] (SLIDER-1230) ContainerPriority.hasLocation does not working properly

kyungwan nam created SLIDER-1230:
------------------------------------

             Summary: ContainerPriority.hasLocation does not working properly
                 Key: SLIDER-1230
                 URL: https://issues.apache.org/jira/browse/SLIDER-1230
             Project: Slider
          Issue Type: Bug
    Affects Versions: Slider 0.92
            Reporter: kyungwan nam
            Priority: Minor


ContainerPriority.hasLocation
{code}
public static boolean hasLocation(int priority) {
  return (priority ^ NOLOCATION ) == 0;
}
{code}

it will be always false.

1. priority that is set NOLOCATION bit
priority 1000000000000000000000000000001
NOLOCATION 1000000000000000000000000000000
priority ^ NOLOCATION = 1

2. prority that is not set NOLOCATION bit
priority 1
NOLOCATION 1000000000000000000000000000000
priority ^ NOLOCATION = 1000000000000000000000000000001

it is pointed out in SLIDER-1051 comments.
but, it has not been fixed yet.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)