hongzhi-gao opened a new pull request, #17996: URL: https://github.com/apache/iotdb/pull/17996
## Description ### Cache Refresh Configuration This PR makes the occupied-space cache refresh policy in `MinFolderOccupiedSpaceFirstStrategy` configurable instead of hardcoding `60s` and `1000` selections. ### Configuration Loading Two common config items are added with positive-value validation: - `min_folder_occupied_space_cache_refresh_interval_ms` - `min_folder_occupied_space_cache_refresh_selection_threshold` Invalid non-positive values are ignored and the defaults are kept. ### Tests Added real-filesystem coverage for the occupied-space cache behavior and updated existing strategy tests. <hr> This PR has: - [x] been self-reviewed. - [x] added documentation for new or modified features or behaviors. - [x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader. - [x] added unit tests or modified existing tests to cover new code paths. - [x] added integration tests. <hr> ##### Key changed/added classes (or packages if there are too many classes) in this PR - `MinFolderOccupiedSpaceFirstStrategy` - `CommonConfig` - `CommonDescriptor` - `iotdb-system.properties.template` -- 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]
