Details
Description
void Master::__reregisterSlave( ... foreachkey (FrameworkID frameworkId, slaves.unreachableTasks.at(slaveInfo.id())) { ... foreach (TaskID taskId, slaves.unreachableTasks.at(slaveInfo.id()).get(frameworkId)) {
Our case is when network flapping, 3~4 agents reregister, then master would CPU full and could not process any requests during that period.
After change
- foreachkey (FrameworkID frameworkId, - slaves.unreachableTasks.at(slaveInfo.id())) { + foreach (FrameworkID frameworkId, + slaves.unreachableTasks.at(slaveInfo.id()).keys()) {
The problem gone.
Attachments
Issue Links
- is related to
-
MESOS-5037 foreachkey behaviour is not expected in multimap
- Open