SammyVimes commented on a change in pull request #741:
URL: https://github.com/apache/ignite-3/pull/741#discussion_r831841571
##########
File path:
modules/raft/src/main/java/org/apache/ignite/raft/jraft/core/NodeImpl.java
##########
@@ -1167,36 +1167,37 @@ private void initPools(final NodeOptions opts) {
if (opts.getClientExecutor() == null && validateOption(opts,
"clientExecutor"))
opts.setClientExecutor(JRaftUtils.createClientExecutor(opts,
opts.getServerName()));
+
if (opts.getfSMCallerExecutorDisruptor() == null) {
- opts.setfSMCallerExecutorDisruptor(new
StripedDisruptor<FSMCallerImpl.ApplyTask>(
- NamedThreadFactory.threadPrefix(opts.getServerName(),
"JRaft-FSMCaller-Disruptor"),
- opts.getRaftOptions().getDisruptorBufferSize(),
- () -> new FSMCallerImpl.ApplyTask(),
- opts.getStripes()));
+ opts.setfSMCallerExecutorDisruptor(new StripedDisruptor<>(
+ NamedThreadFactory.threadPrefix(opts.getServerName(),
"JRaft-FSMCaller-Disruptor"),
Review comment:
Is it a good idea to alter formatting here? It’s jraft code that we
won’t be able to automatically merge later
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]