Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize flushing memtable check #12081

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Conversation

HTHou
Copy link
Contributor

@HTHou HTHou commented Feb 26, 2024

Description

We found the flush submit task would stack a lot when write multiple time partitions concurrently.

image

The reason of this phenomenon is that the flush submit task check whether is the TsFileProcessor closing in the WriteLock of DataRegion. This check logic should be move out of the WriteLock.

Moreover, the closingSequenceTsFileProcessor and closingUnSequenceTsFileProcessor can be simplify to the HashSet instead.

After this modification, the write performance increased about 10%.

image

Copy link

sonarcloud bot commented Feb 26, 2024

@HTHou HTHou merged commit 8aeab9f into master Feb 26, 2024
33 of 37 checks passed
@HTHou HTHou deleted the optimize_flushing_memtable_check branch February 26, 2024 09:34
Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

HTHou added a commit that referenced this pull request Mar 5, 2024
SzyWilliam pushed a commit to SzyWilliam/iotdb that referenced this pull request Nov 26, 2024
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.

3 participants