hongzhi-gao opened a new pull request, #18020: URL: https://github.com/apache/iotdb/pull/18020
## Description ### IoTConsensus receive folder strategy IoTConsensus now always uses `MinFolderOccupiedSpaceFirstStrategy` for the snapshot receive folder, balancing received files by least occupied space, independent of the global `dn_multi_dir_strategy`. ### Allow the strategy in cluster mode + NPE fix `MinFolderOccupiedSpaceFirstStrategy` is added to `CLUSTER_ALLOWED_MULTI_DIR_STRATEGIES` so it can be configured on DataNodes. Also fixes an NPE in the `dn_multi_dir_strategy` validation rollback path (previous value may be null), so the informative error surfaces. ### Integration test Adds `DataNodeConfig.setDnMultiDirStrategy` and exercises the strategy in `IoTDBRegionMigrateWithDeletionMultiDataDirIT` (1C3D, IoTConsensus, multi data dirs). <hr> This PR has: - [x] been self-reviewed. - [x] added integration tests. - [x] been tested in a test IoTDB cluster. <hr> ##### Key changed/added classes in this PR - `DataRegionConsensusImpl` - `IoTDBConfig` / `IoTDBDescriptor` - `IoTDBRegionMigrateWithDeletionMultiDataDirIT` -- 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]
