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

Delayed Writes: fix L0 calc bug #311

Merged
merged 1 commit into from
Dec 25, 2022

Conversation

Yuval-Ariel
Copy link
Contributor

No description provided.

@Yuval-Ariel Yuval-Ariel requested a review from ayulas December 23, 2022 13:46
@Yuval-Ariel Yuval-Ariel self-assigned this Dec 23, 2022
@Yuval-Ariel Yuval-Ariel linked an issue Dec 23, 2022 that may be closed by this pull request
@@ -1013,15 +1013,15 @@ ColumnFamilyData::CalculateWriteDelayDividerAndMaybeUpdateWriteStallCause(

// L0 files
double l0_divider = 1;
const auto extra_l0_ssts = vstorage->NumLevelFiles(0) -
const auto extra_l0_ssts = vstorage->l0_delay_trigger_count() -
Copy link
Contributor

Choose a reason for hiding this comment

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

it means that you used the incorrect value to calc the write delay , right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think that l0_delay_trigger_count() is used generically which works for universal compaction as well. it worked just as well before but i noticed that l0_delay_trigger_count() is used to count the L0 files before and after that point in the code..

@Yuval-Ariel Yuval-Ariel force-pushed the 310-delayed-writes-l0-file-calculation-bug branch from 2d812fb to 34aaeaa Compare December 25, 2022 14:20
@Yuval-Ariel Yuval-Ariel merged commit 2f46760 into main Dec 25, 2022
@Yuval-Ariel Yuval-Ariel deleted the 310-delayed-writes-l0-file-calculation-bug branch December 26, 2022 13:04
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.

Delayed Writes L0 file calculation bug
2 participants