-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added begin and end offset param #78
Conversation
@@ -290,6 +290,28 @@ paths: | |||
items: | |||
$ref: '#/components/schemas/ConsumerGroup' | |||
|
|||
/api/clusters/offsets/{clusterName}: |
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.
Why do we need special endpoint? Could we add this to exist topic partition list?
@@ -351,4 +351,40 @@ private InternalClusterMetrics collectTopicsMetrics(Map<String,InternalTopic> to | |||
}) | |||
); | |||
} | |||
|
|||
public Mono<Map<String, BigDecimal>> getOffsets (AdminClient ac, KafkaCluster c) { |
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.
What is String? TopicPartition?
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.
Topic-Partition-max/min to avoid creating new object in swagger
}); | ||
} | ||
|
||
private Mono<List<Map<String, List<Integer>>>> getTopicPartitionList(AdminClient ac) { |
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 don't think we need all these offsets in one time
* Added begin and end offset param * moved consumer to try with resources block * Fixed some problems * Moved to gettopicdetails * Cleanup code Co-authored-by: Roman Nedzvetskiy <roman@Romans-MacBook-Pro.local> Co-authored-by: German Osin <german.osin@gmail.com>
No description provided.