Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Implemented
-
None
Description
//ContainerStateMachine private ExecutorService getCommandExecutor( ContainerCommandRequestProto requestProto) { int executorId = (int)(requestProto.getContainerID() % executors.length); return executors[executorId]; }
In the code above, different containers having the same remainder (mod executors.length ) will use the same executor even if some other executors are idle. Ideally, different containers should use a different executor if there are executors available.
Attachments
Issue Links
- is related to
-
HDDS-5831 Remove empty TaskQueue in ContainerStateMachine
- Resolved
- links to