rpuch commented on code in PR #2450:
URL: https://github.com/apache/ignite-3/pull/2450#discussion_r1301677730
##########
modules/raft/src/main/java/org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java:
##########
@@ -122,10 +125,12 @@ public class JraftServerImpl implements RaftServer {
private ExecutorService requestExecutor;
/** Marshaller for RAFT commands. */
- private final Marshaller commandsMarshaller;
+ private final Marshaller defaultCommandsMarshaller;
/** Raft service event interceptor. */
- private RaftServiceEventInterceptor serviceEventInterceptor;
+ private final RaftServiceEventInterceptor serviceEventInterceptor;
+
+ private AppendEntriesRequestInterceptor appendEntriesRequestInterceptor =
new NullAppendEntriesRequestInterceptor();
Review Comment:
The setter is called from the thread that starts an Ignite node; the field
is accessed in the `start()` method that is called from the same thread, so no
concurrency issues are expected here. Do you have any specific scenario in mind?
--
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]