lanyuanxiaoyao opened a new pull request, #5677: URL: https://github.com/apache/hudi/pull/5677
## *Tips* - *Thank you very much for contributing to Apache Hudi.* - *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.* ## What is the purpose of the pull request Now flink offline compaction tool only handle one compaction plan in one execution. But some time, compaction plan that created is faster than offline compact. So it is neccessary to handle multi compaction plan in one offline compact. Luckly, flink provide a easy way to make the process parallelable. I make a new parameter named 'compactionPlanSelectStrategy' to define the offline compact tool how to select compaction plan to compact. For example, 'SingleCompactionPlanSelectStrategy' will select first or last compaction plan from timeline and 'AllPendingCompactionPlanSelectStrategy' will select all pending compaction plan. It is compatible for the parameter 'compactionSeq'. In default, compaction plan select strategy is 'SingleCompactionPlanSelectStrategy' means select first or last compaction plan according to 'compactionSeq' ## Brief change log Change the compaction plan select strategy in flink offline compaction tool. It can choose multi compaction plan instead of choose first or last. ## Verify this pull request This pull request is already covered by existing tests, such as `ITTestHoodieFlinkCompactor`. ## Committer checklist - [x] Has a corresponding JIRA in PR title & commit - [x] Commit message is descriptive of the change - [x] CI is green - [x] Necessary doc changes done or have another open PR - [x] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. -- 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]
