Caideyipi opened a new pull request, #18362: URL: https://github.com/apache/iotdb/pull/18362
## Description ### Respect `source.history.enable` A global `source.start-time` or `source.end-time` previously enabled historical extraction unconditionally. Consequently, `source.history.enable=false` could still transfer data that existed before pipe creation. This PR: - determines historical enablement independently from the global time range; - preserves the default behavior when `source.history.enable` is omitted; - preserves historical recovery for pipe restarts and newly added DataRegions; - continues applying the global time range to realtime extraction and to historical extraction when history is enabled. ### Keep parameter precedence clear A global start/end time still takes precedence over history-specific start/end time. The validation warning is updated so that it no longer reports `source.history.enable` as invalid when a global time range is configured. ### Tests - `PipeHistoricalDataRegionTsFileAndDeletionSourceTest`: 19 tests, 0 failures. - `IoTDBPipeSourceIT#testSourceTimeRangeRespectsHistoryDisable`: 1 test, 0 failures. - Spotless checks for the modified DataNode and integration-test code. - `git diff --check`. <hr> This PR has: - [x] been self-reviewed. - [x] added comments explaining the why and intent of the code. - [x] added unit tests covering the new code path. - [x] added integration tests. - [x] been tested in the integration-test IoTDB cluster. <hr> ##### Key changed/added classes (or packages if there are too many classes) in this PR - `PipeHistoricalDataRegionTsFileAndDeletionSource` - `IoTDBDataRegionSource` - `PipeHistoricalDataRegionTsFileAndDeletionSourceTest` - `IoTDBPipeSourceIT` -- 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]
