anmolnar commented on a change in pull request #742: ZOOKEEPER-3223: Configure 
Spotbugs
URL: https://github.com/apache/zookeeper/pull/742#discussion_r244963646
 
 

 ##########
 File path: 
zookeeper-server/src/main/java/org/apache/zookeeper/server/persistence/FileTxnLog.java
 ##########
 @@ -180,7 +180,7 @@ public static void setPreallocSize(long size) {
      * @param serverStats used to update fsyncThresholdExceedCount
      */
     @Override
-    public void setServerStats(ServerStats serverStats) {
+    public synchronized void setServerStats(ServerStats serverStats) {
 
 Review comment:
   I'm not sure if we need to synchronize here, but it shouldn't be part of 
this patch.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to