Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
Description
ContainerIds generated by the Local Scheduler on the NM monotonically decrements from 0 to distinguish them from incrementing containerIds generated by the RM.
Since only the last 40 bits of the ContainerId are actually used, This patch ensures that -1 containerId maps to 2 ^40 -1 and the toString and fromString correctly parses these containerId.
One implication of this is patch is that the containerId space is divided into 2. The top half will be used by remotely allocated containers and the bottom half by those allocated by the RM