Caideyipi opened a new pull request, #18991:
URL: https://github.com/apache/iotdb/pull/18991
## Description
Cherry-pick #18984 (`b626c602ead0ba8d96744eac8324d948c19a4e30`) to
`dev/1.3`, adapting the memory-block constructors, allocation APIs, and tests
to the 1.3 implementation.
TsFile parser allocation and resizing now enforce the same protected
combined tablet/TsFile quota. Parser working memory is charged to TsFile usage,
leaving the tablet quota available for generated output. Resize failures report
usage and category limits in both English and Chinese, and retries cannot grow
a released memory block.
## Validation
- Reactor compilation, Checkstyle, and Spotless passed.
- English: 34 tests passed across `PipeMemoryManagerResizeTest`,
`PipeMemoryManagerTest`, and `TsFileInsertionDataContainerTest`.
- Chinese (`-Pwith-zh-locale`): 18 tests passed across
`PipeMemoryManagerResizeTest` and `PipeMemoryManagerTest`.
```sh
mvn -B -ntp -pl iotdb-core/datanode -am \
-Dtest=PipeMemoryManagerResizeTest,PipeMemoryManagerTest,TsFileInsertionDataContainerTest
\
-Dsurefire.failIfNoSpecifiedTests=false test
mvn -B -ntp -Pwith-zh-locale -pl iotdb-core/datanode -am \
-Dtest=PipeMemoryManagerResizeTest,PipeMemoryManagerTest \
-Dsurefire.failIfNoSpecifiedTests=false test
```
- [x] Self-reviewed, including concurrent allocation and quota accounting.
- [x] Adapted the original regression tests to the 1.3 APIs.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]