HTHou commented on a change in pull request #1269:
URL: https://github.com/apache/incubator-iotdb/pull/1269#discussion_r431545190



##########
File path: 
server/src/test/java/org/apache/iotdb/db/engine/storagegroup/TsFileProcessorTest.java
##########
@@ -282,9 +282,8 @@ public void testWriteAndClose() throws IOException, 
WriteProcessException{
   private void closeTsFileProcessor(TsFileProcessor unsealedTsFileProcessor) 
throws TsFileProcessorException {
     TsFileResource resource = unsealedTsFileProcessor.getTsFileResource();
     synchronized (resource) {
-      for (Entry<String, Long> startTime : 
resource.getStartTimeMap().entrySet()) {
-        String deviceId = startTime.getKey();
-        resource.getEndTimeMap().put(deviceId, 
resource.getStartTimeMap().get(deviceId));
+      for (Entry<String, Integer> entry : 
resource.getDeviceToIndexMap().entrySet()) {
+        resource.putEndTime(entry.getKey(), 
resource.getStartTime(entry.getValue()));

Review comment:
       I am confusing too...




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