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

Add Consumer.HighWaterMarks() #769

Merged
merged 3 commits into from
Nov 29, 2016

Conversation

mathpl
Copy link
Contributor

@mathpl mathpl commented Oct 20, 2016

This adds a way for a consumer user to access the PartitionConsumers high water marks.

@eapache
Copy link
Contributor

eapache commented Oct 24, 2016

I think I'm OK with this, but it is worth noting that the data returned by this call is not guaranteed to be consistent between partitions. It's probably worth noting that caveat in the documentation.

@@ -63,6 +63,9 @@ type Consumer interface {
// or OffsetOldest
ConsumePartition(topic string, partition int32, offset int64) (PartitionConsumer, error)

// HighWaterMarks returns the current high water marks for each topic and partitions
Copy link
Contributor

Choose a reason for hiding this comment

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

grammatically, you don't need to pluralize "partitions"

@mathpl mathpl force-pushed the feature/expose_high_water_mark branch 2 times, most recently from bca64d9 to c9eb295 Compare October 24, 2016 18:47
@mathpl mathpl force-pushed the feature/expose_high_water_mark branch from c9eb295 to b0e729b Compare October 24, 2016 18:48
@mathpl
Copy link
Contributor Author

mathpl commented Oct 28, 2016

Modified the comments and now the CI fails, not sure what to do.

@eapache eapache merged commit 4d11317 into IBM:master Nov 29, 2016
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