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:23:04 UTC
[jira] [Updated] (SLIDER-1230) ContainerPriority.hasLocation does
not working properly
[ https://issues.apache.org/jira/browse/SLIDER-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
kyungwan nam updated SLIDER-1230:
---------------------------------
Attachment: SLIDER-1230.001.patch
attach the patch including test code.
> 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
> Attachments: SLIDER-1230.001.patch
>
>
> 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)