Skip to content

[#8881] improvement(fileset): use fileset write lock instead of schema lock for fileset creation#8880

Merged
yuqi1129 merged 1 commit intoapache:mainfrom
youngyjd:use-fileset-level-lock-during-fileset-creation
Oct 24, 2025
Merged

[#8881] improvement(fileset): use fileset write lock instead of schema lock for fileset creation#8880
yuqi1129 merged 1 commit intoapache:mainfrom
youngyjd:use-fileset-level-lock-during-fileset-creation

Conversation

@youngyjd
Copy link
Contributor

@youngyjd youngyjd commented Oct 22, 2025

What changes were proposed in this pull request?

Scope locking down from schema-level to a fileset-level write lock during fileset creation. This allows multiple filesets to be created concurrently within the same schema and should improve create-fileset throughput.

Why are the changes needed?

The schema-wide lock serialized all creations within a schema, becoming a bottleneck. Using a per-fileset write lock reduces contention and increases parallelism. Note: this is a performance–consistency trade-off; during active writes, listing operations may briefly return incomplete results until creations commit.

Fix: #8881

Does this PR introduce any user-facing change?

no

How was this patch tested?

manual testing

@youngyjd youngyjd changed the title [improvement] improvement(fileset): use fileset write lock instead of schema lock for fileset creation [#8881] improvement(fileset): use fileset write lock instead of schema lock for fileset creation Oct 22, 2025
@mchades mchades requested a review from yuqi1129 October 24, 2025 01:54
@mchades
Copy link
Contributor

mchades commented Oct 24, 2025

LGTM. @yuqi1129 could you please also take a review, thx!

@yuqi1129 yuqi1129 merged commit 8a12595 into apache:main Oct 24, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Use fileset lock instead of schema lock during fileset creation

3 participants