Open miroslavbel opened 2 years ago
I have a vague memory that you're not allowed to pass the same partition multiple times in the same call.
Oh, yes. I see this note in librdkafka but I don't see in confluent-kafka-python. May be we need to fix this?
It seems to me that docs at site is different from this repo: site in Consumer.poll() doesn't have note section, but this repo has.
New Admin API, list_offsets
is also available now. You can use that API now.
Keeping this issue Open as there is some documentation related issue between API documentation and the comments in the code.
Description
How to reproduce
Set up some variables to use
Connect to kafka
case 1 (get offsets for three timestamps separately)
.offsets_for_times()
three times with a list with one timestamp46504966
offset fordate_in
46504987
offset fordate_mid
46504988
offset fordate_out
case 2 (get offsets for two timestamps at one call)
.offsets_for_times()
with a list with two timestamps46504988
offset fordate_in
46504988
offset fordate_out
46504966
offset fordate_in
46504988
offset fordate_out
case 3 (get offsets for three timestamps at one call)
.offsets_for_times()
with a list with two timestamps46504988
offset fordate_in
46504988
offset fordate_out
46504988
offset fordate_out
46504966
offset fordate_in
46504987
offset fordate_mid
46504988
offset fordate_out
Checklist
Please provide the following information:
confluent_kafka.version():
('1.7.0', 17235968)
confluent_kafka.libversion():('1.7.0', 17236223)
python:Python 3.7.11 [GCC 9.3.0] on linux
OS:Ubuntu 20.04.2 LTS
Client configuration:{'group.id':'qa', 'bootstrap.servers':'serever1.example:port,serever2.example:port,serever3.example:port,serever4.example:port,serever5.example:port'}
confluent_kafka.version()
andconfluent_kafka.libversion()
):{...}
'debug': '..'
as necessary)