Skip to content
Unverified Commit 3d23d385 authored by Justine Rochas's avatar Justine Rochas Committed by GitHub
Browse files

Prevent setNodesAvailable to be called for not-yet-available nodes (#3096)

* Prevent setNodesAvailable to be called for not-yet-available nodes

- factorize allNodes.put calls in a single method RMCore#makeNodeAvailable that is accessible from the node source and whose returned future is waited on on the node source side, to wait for the node to be added in the map.
- make allNodes map a ConcurrentHashMap because of its access in ImmediateService (in setNodesAvailable)
- in case of recovery, wait for the RM to have its initActivity finished before letting 'setNodesAvailable' (immediate service) proceed
parent 85ce3a52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment