[ https://issues.apache.org/jira/browse/KAFKA-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Kreps updated KAFKA-252: ---------------------------- Priority: Major (was: Critical) Description: The relevant discussion is here - https://issues.apache.org/jira/browse/KAFKA-238?focusedCommentId=13191350&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13191350 and on KAFKA-642 We have an api that gets cluster-wide metadata (getTopicmetdata) which we use for bootstraping knowledge about the cluster. But some things can only be fetched from the leader for the partition. With replication, the metadata about log segments can only be returned by a broker that hosts that partition locally. It will be good to expose log segment metadata through a more general replica metadata API that in addition to returning offsets, also returns other metadata like - number of log segments, total size, last modified timestamp, highwater mark, and log end offset. was: The relevant discussion is here - https://issues.apache.org/jira/browse/KAFKA-238?focusedCommentId=13191350&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13191350 With replication, the log segment metadata can only be returned by a broker that hosts that partition locally. It will be good to expose log segment metadata through a more general replica metadata API that in addition to returning offsets, also returns other metadata like - number of log segments, total size, last modified timestamp etc Summary: Generalize getOffsetsBefore API to a new more general API getLeaderMetadata (was: Investigate and change getOffsetsBefore API to a new, more general API getReplicaMetadata) > Generalize getOffsetsBefore API to a new more general API getLeaderMetadata > --------------------------------------------------------------------------- > > Key: KAFKA-252 > URL: https://issues.apache.org/jira/browse/KAFKA-252 > Project: Kafka > Issue Type: Improvement > Components: core > Affects Versions: 0.8 > Reporter: Neha Narkhede > Labels: replication > > The relevant discussion is here - > https://issues.apache.org/jira/browse/KAFKA-238?focusedCommentId=13191350&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13191350 > and on KAFKA-642 > We have an api that gets cluster-wide metadata (getTopicmetdata) which we use > for bootstraping knowledge about the cluster. But some things can only be > fetched from the leader for the partition. > With replication, the metadata about log segments can only be returned by a > broker that hosts that partition locally. It will be good to expose log > segment metadata through a more general replica metadata API that in addition > to returning offsets, also returns other metadata like - number of log > segments, total size, last modified timestamp, highwater mark, and log end > offset. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira