karapace
karapace copied to clipboard
Flaky behaviour of GET /topics/<topic-name>/partitions/<partition-id>/offsets
What happened?
I tried to run this request: GET /topics/topic-name/partitions/partition-id/offsets. I found some flaky behaviours, sometimes I got the response like below:
{"beginning_offset":-1,"end_offset":6}
But sometimes I got a 500 Internal server error:
{"error_code":500,"message":"Internal server error"}
What did you expect to happen?
Response shouldn't be flaky, 500 Internal server error shouldn't be raised.
What else do we need to know?
Include your platform, version, and any other information that seems relevant. Karapace is running on my local machine connecting to my remote Kafka cluster.
@YuWang24 could you provide a MRE and the karapace logs? Thanks
It seems that I cannot reproduce the error at the moment, but I am sure that I got the 500 error several times when I made the GET /topics/topic-name/partitions/partition-id/offsets request.
@YuWang24 could you share a bit more details about your setup? Your platform, how are you running and the versions of Kafka and ZK, the version of Karapace and roughly what was being executed at the time you experienced the failure?
I was using Kafka 2.6.1, Zookeeper 3.5.8, running Karapace 2.0.1 on my Mac laptop using python, connecting my remote Kafka cluster running on a managed platform. I created a topic, then I ran GET /topics/topic-name/partitions/partition-id/offsets, I got the 500 error a few times.