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

Cleanup flushing logic in DocumentsWriter #12647

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Conversation

s1monw
Copy link
Member

@s1monw s1monw commented Oct 10, 2023

DocumentsWriter had some duplicate logic for iterating over segments to be flushed. This change simplifies some of the loops and moves common code in on place. This also adds tests to ensure we actually freeze and apply deletes on segment flush.

Relates to #12572

DocumentsWriter had some duplicate logic for iterating over
segments to be flushed. This change simplifies some of the loops
and moves common code in on place. This also adds tests to ensure
we actually freeze and apply deletes on segment flush.

Relates to apache#12572
@s1monw s1monw requested review from jpountz and mikemccand October 10, 2023 14:00
Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Simon!

@s1monw s1monw merged commit 268dd54 into apache:main Oct 12, 2023
@s1monw s1monw deleted the simplify_deletes branch October 12, 2023 14:49
s1monw added a commit that referenced this pull request Oct 12, 2023
DocumentsWriter had some duplicate logic for iterating over
segments to be flushed. This change simplifies some of the loops
and moves common code in on place. This also adds tests to ensure
we actually freeze and apply deletes on segment flush.

Relates to #12572
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.

2 participants