comnetwork commented on a change in pull request #2055:
URL: https://github.com/apache/hbase/pull/2055#discussion_r457043214



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncProtobufLogWriter.java
##########
@@ -59,7 +59,7 @@
 
   private final Class<? extends Channel> channelClass;
 
-  private AsyncFSOutput output;
+  private volatile AsyncFSOutput output;

Review comment:
       @Apache9 , Yes, I agree with you, and would modify PR following your 
suggestion. 
   BTW,  for now, `AsyncProtobufLogWriter.getSyncedLength` is only used when 
the WAL file is writing.  `AsyncProtobufLogWriter.getSyncedLength`  for  closed 
wrter may be used for future use.




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


Reply via email to