Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.7.0
-
None
-
Reviewed
Description
RMNodeImpl.java
while(nodeUpdateQueue.peek() != null){ latestContainerInfoList.add(nodeUpdateQueue.poll()); }
The above code brings potential risk of adding null value to latestContainerInfoList. Since ConcurrentLinkedQueue implements a wait-free algorithm, we can directly poll the queue, before checking whether the value is null.