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

Compaction uses GetLastMessageId #1286

Merged
merged 1 commit into from
Feb 26, 2018
Merged

Conversation

ivankelly
Copy link
Contributor

In two phase compaction, we read from the start of the topic to the
end. Previously, we had no reliable way to knowing if we were at the
end of the topic, so we used timeouts.

However, with the new GetLastMessageId api, we can find how far we
should read in a topic, and just stop when we get there.

In two phase compaction, we read from the start of the topic to the
end. Previously, we had no reliable way to knowing if we were at the
end of the topic, so we used timeouts.

However, with the new GetLastMessageId api, we can find how far we
should read in a topic, and just stop when we get there.
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Feb 26, 2018
@merlimat merlimat added this to the 2.0.0-incubating milestone Feb 26, 2018
@merlimat merlimat merged commit da64d0c into apache:master Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants