jixuan1989 commented on a change in pull request #2435:
URL: https://github.com/apache/iotdb/pull/2435#discussion_r553100032



##########
File path: 
server/src/main/java/org/apache/iotdb/db/engine/memtable/AbstractMemTable.java
##########
@@ -174,10 +175,11 @@ public void write(InsertTabletPlan insertTabletPlan, int 
start, int end) {
 
   @Override
   public boolean checkIfChunkDoesNotExist(String deviceId, String measurement) 
{
-    if (!memTableMap.containsKey(deviceId)) {
+    Map<String, IWritableMemChunk> memSeries = memTableMap.get(deviceId);
+    if (null == memSeries) {
       return true;
     }
-    Map<String, IWritableMemChunk> memSeries = memTableMap.get(deviceId);
+

Review comment:
       my fault.  ignore the comment..




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