OneSizeFitsQuorum commented on code in PR #1057:
URL: https://github.com/apache/ratis/pull/1057#discussion_r1537038177


##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcLogAppender.java:
##########
@@ -157,7 +158,7 @@ synchronized int process(Event event) {
   private final int maxOutstandingInstallSnapshots;
   private final TimeoutExecutor scheduler = TimeoutExecutor.getInstance();
 
-  private volatile StreamObservers appendLogRequestObserver;
+  private AtomicReference<StreamObservers> appendLogRequestObserver = new 
AtomicReference<>();

Review Comment:
   Brilliant design! Changed!



-- 
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]

Reply via email to