Skip to content

fix issue 5884#7300

Closed
mroccyen wants to merge 1 commit intoapache:masterfrom
mroccyen:issue-5884
Closed

fix issue 5884#7300
mroccyen wants to merge 1 commit intoapache:masterfrom
mroccyen:issue-5884

Conversation

@mroccyen
Copy link

Description

this PR fix issue #5884

@mroccyen mroccyen changed the title issue 5884 fix issue 5884 Sep 13, 2022
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi, this is your first pull request in IoTDB project. Thanks for your contribution! IoTDB will be better because of you.

Copy link
Contributor

@THUMarkLau THUMarkLau left a comment

Choose a reason for hiding this comment

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

For CrossSpaceCompactionWriter, multiple threads may write to multiple different TsFileIOWriter, if we synchronized them with a single object, it may lead to performance decrease. It's better to maintain a global array, which map sub-task-id to the writer they are using. When thread writes data, it only needs to synchronized the writer it is using.

@HTHou HTHou closed this Oct 17, 2022
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