diff --git a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessorTest.java b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessorTest.java index 58d6944bad4ef..631ba376e8a35 100644 --- a/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessorTest.java +++ b/iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/memtable/TsFileProcessorTest.java @@ -632,49 +632,6 @@ public void testWriteAndRestoreMetadata() // we need to close the tsfile writer first and then reopen it. } - @Test - public void testMultiFlush() - throws IOException, WriteProcessException, MetadataException, ExecutionException { - processor = - new TsFileProcessor( - storageGroup, - SystemFileFactory.INSTANCE.getFile(filePath), - sgInfo, - this::closeTsFileProcessor, - (tsFileProcessor, updateMap, systemFlushTime) -> {}, - true); - - TsFileProcessorInfo tsFileProcessorInfo = new TsFileProcessorInfo(sgInfo); - processor.setTsFileProcessorInfo(tsFileProcessorInfo); - this.sgInfo.initTsFileProcessorInfo(processor); - SystemInfo.getInstance().reportStorageGroupStatus(sgInfo, processor); - List tsfileResourcesForQuery = new ArrayList<>(); - MeasurementPath fullPath = - new MeasurementPath( - deviceId, - measurementId, - new MeasurementSchema( - measurementId, dataType, encoding, CompressionType.UNCOMPRESSED, props)); - processor.query(Collections.singletonList(fullPath), context, tsfileResourcesForQuery, null); - assertTrue(tsfileResourcesForQuery.isEmpty()); - - for (int flushId = 0; flushId < 10; flushId++) { - for (int i = 1; i <= 10; i++) { - TSRecord record = new TSRecord(i, deviceId); - record.addTuple(DataPoint.getDataPoint(dataType, measurementId, String.valueOf(i))); - processor.insert(buildInsertRowNodeByTSRecord(record), new long[4]); - } - processor.asyncFlush(); - } - processor.syncFlush(); - - tsfileResourcesForQuery.clear(); - processor.query(Collections.singletonList(fullPath), context, tsfileResourcesForQuery, null); - assertFalse(tsfileResourcesForQuery.isEmpty()); - assertTrue(tsfileResourcesForQuery.get(0).getReadOnlyMemChunk(fullPath).isEmpty()); - processor.syncClose(); - } - @Test public void alignedTvListRamCostTest() throws MetadataException, WriteProcessException, IOException {