Skip to content

Delayed Writes: fix L0 calc bug - #311

Merged
Yuval-Ariel merged 1 commit into
mainfrom
310-delayed-writes-l0-file-calculation-bug
Dec 25, 2022
Merged

Delayed Writes: fix L0 calc bug#311
Yuval-Ariel merged 1 commit into
mainfrom
310-delayed-writes-l0-file-calculation-bug

Conversation

@Yuval-Ariel

Copy link
Copy Markdown
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
Comment thread db/column_family.cc
// 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
Copy Markdown
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
Copy Markdown
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