nsivabalan opened a new pull request, #8275: URL: https://github.com/apache/hudi/pull/8275
### Change Logs Looks like clustering dag is triggered twice even in happy path. This patch attempts at fixing the issue. This follows similar approach as [compactor](https://github.com/apache/hudi/blob/bf2e64caa6b49c5fed561bdae500e0dbf60e51ef/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/compact/RunCompactionActionExecutor.java#L99), where before triggering the dag for the first time, we persist the rdd. And then once the CommitMetadata is returned from table to the client, client clones the commitMetadata and any further execution will not trigger the dag again. ### Impact Clustering will by robust and will not result in spurious data files (which might eventually cleaned up anyways). ### Risk level (write none, low medium or high below) low. ### Documentation Update N/A ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
