-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
KAFKA-17266: Add dynamic broker config to enable follower fetch using tiered offset #16834
base: trunk
Are you sure you want to change the base?
Conversation
49114a4
to
e6cbdbe
Compare
e6cbdbe
to
84e22cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, left minor comments to address. Thanks for the patch!
core/src/test/scala/unit/kafka/server/DynamicBrokerConfigTest.scala
Outdated
Show resolved
Hide resolved
@@ -136,6 +136,10 @@ public class ReplicationConfigs { | |||
public static final String REPLICA_SELECTOR_CLASS_CONFIG = "replica.selector.class"; | |||
public static final String REPLICA_SELECTOR_CLASS_DOC = "The fully qualified class name that implements ReplicaSelector. This is used by the broker to find the preferred read replica. By default, we use an implementation that returns the leader."; | |||
|
|||
public static final String FOLLOWER_FETCH_LAST_TIERED_OFFSET_ENABLE_CONFIG = "follower.fetch.last.tiered.offset.enable"; | |||
public static final String FOLLOWER_FETCH_LAST_TIERED_OFFSET_ENABLE_DOC = "If enabled, an empty follower will skip replicating offsets up to the last tiered offset and start from the next offset."; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc is not clear, can we update it to make it clear for the users. From KIP:
Whether the last tiered offset should be used as the start offset for bootstrapping an empty follower
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to update the KIP as well - The last tiered offset is actually not the start offset for the follower. It is the next offset.
84e22cf
to
f9117d1
Compare
Please rebase this PR with trunk |
This PR is being marked as stale since it has not had any activity in 90 days. If you If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
I would like to revive this PR. @kamalcph will you be able to help with reviews. I can rebase the PR with trunk. |
In this PR, we add a dynamic broker config to enable/disable follower fetch using tiered offset. This is part of the implementation for KIP-1023
Added tests for the new dynamic broker config.
Committer Checklist (excluded from commit message)