This is an automated email from the ASF dual-hosted git repository.
jt2594838 pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new a9af9f2172b [To dev/1.3] Remove TsFileProcessor multi-flush test
(#19505)
a9af9f2172b is described below
commit a9af9f2172bf240d00915f4ab4038eb1167df4a4
Author: Caideyipi <[email protected]>
AuthorDate: Wed Dec 2 21:31:44 2026 +0800
[To dev/1.3] Remove TsFileProcessor multi-flush test (#19505)
* [To dev/1.3] Fix TsFileProcessor close after ordinary flush
* [To dev/1.3] Remove TsFileProcessor multi-flush test
---
.../dataregion/memtable/TsFileProcessorTest.java | 43 ----------------------
1 file changed, 43 deletions(-)
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 58d6944bad4..631ba376e8a 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 class TsFileProcessorTest {
// 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<TsFileResource> 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 {