zuston commented on code in PR #2712:
URL: https://github.com/apache/uniffle/pull/2712#discussion_r2689353142


##########
common/src/main/java/org/apache/uniffle/common/DeferredCompressedBlock.java:
##########
@@ -31,7 +32,7 @@
 public class DeferredCompressedBlock extends ShuffleBlockInfo {
   private final Function<DeferredCompressedBlock, DeferredCompressedBlock> 
rebuildFunction;
   private int estimatedCompressedSize;
-  private boolean isInitialized = false;
+  private AtomicBoolean isInitialized = new AtomicBoolean(false);

Review Comment:
   I use the double-lock to ensure the rebuilding happen only once, maybe this 
is not necessary to make this var sync.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to