joeCarf commented on code in PR #7281:
URL: https://github.com/apache/rocketmq/pull/7281#discussion_r1309053732


##########
tieredstore/src/main/java/org/apache/rocketmq/tieredstore/provider/TieredFileSegment.java:
##########
@@ -50,22 +47,23 @@ public abstract class TieredFileSegment implements 
Comparable<TieredFileSegment>
     protected final TieredMessageStoreConfig storeConfig;
 
     private final long maxSize;
-    private final ReentrantLock bufferLock;
-    private final Semaphore commitLock;
+    private final ReentrantLock bufferLock = new ReentrantLock();
+    private final Semaphore commitLock = new Semaphore(1);
 
-    private volatile boolean full;
-    private volatile boolean closed;
+    private volatile boolean full = false;

Review Comment:
   it will be false as default



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