feat: [HUDI-9780] Concurrency Control test for Show Commit, Compaction and Clustering procedures - applies the same to all the remaining action, file group procedures using the Lock Provider #14318
+444
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the issue this Pull Request addresses
This PR enhances Hudi’s test infrastructure by adding comprehensive concurrency control test cases for Spark SQL Show procedures. These tests validate that the procedures behave correctly and consistently when executed concurrently with operations such as clustering, compaction, and committing. No user-facing or production code behavior is changed.
Summary and Changelog
Summary:
Introduces a new suite of concurrency-focused tests that ensure Hudi Show procedures remain consistent, thread-safe, and timeline-accurate under concurrent operations.
Changelog:
show_clusteringbehavior during concurrent clustering schedule/execute operations.show_compactionremains reliable when compaction is scheduled/executed concurrently.show_commitsconsistency during concurrent insert operations, including timeline progression validation.InProcessLockProviderusing optimistic concurrency control to simulate realistic multi-threaded execution.Impact
Risk Level
none
Test-only changes with no runtime impact on production environments.
Documentation Update
none
Contributor's checklist