This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch autoai_debug
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/autoai_debug by this push:
     new 326fb83  remove volatile && set daemon
326fb83 is described below

commit 326fb837fc6434d6bceca0ab469d0ae8e9e329c8
Author: LebronAl <[email protected]>
AuthorDate: Wed Aug 4 16:07:57 2021 +0800

    remove volatile && set daemon
---
 .../org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
 
b/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
index f55d109..b05b5c8 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/writelog/node/ExclusiveWriteLogNode.java
@@ -60,9 +60,9 @@ public class ExclusiveWriteLogNode implements WriteLogNode, 
Comparable<Exclusive
 
   private final IoTDBConfig config = IoTDBDescriptor.getInstance().getConfig();
 
-  private volatile ByteBuffer logBufferWorking;
-  private volatile ByteBuffer logBufferIdle;
-  private volatile ByteBuffer logBufferFlushing;
+  private ByteBuffer logBufferWorking;
+  private ByteBuffer logBufferIdle;
+  private ByteBuffer logBufferFlushing;
 
   // used for the convenience of deletion
   private volatile ByteBuffer[] bufferArray;
@@ -71,7 +71,7 @@ public class ExclusiveWriteLogNode implements WriteLogNode, 
Comparable<Exclusive
   private final ReentrantLock lock = new ReentrantLock();
   private static final ExecutorService FLUSH_BUFFER_THREAD_POOL =
       Executors.newCachedThreadPool(
-          new 
ThreadFactoryBuilder().setNameFormat("Flush-WAL-Thread%d").build());
+          new 
ThreadFactoryBuilder().setNameFormat("Flush-WAL-Thread-%d").setDaemon(true).build());
 
   private long fileId = 0;
   private long lastFlushedId = 0;

Reply via email to