szetszwo opened a new pull request #2350:
URL: https://github.com/apache/ozone/pull/2350
## What changes were proposed in this pull request?
```
//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.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5355
## How was this patch tested?
Existing unit tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]