karapace icon indicating copy to clipboard operation
karapace copied to clipboard

Flaky behaviour of GET /topics/<topic-name>/partitions/<partition-id>/offsets

Open YuWang24 opened this issue 3 years ago • 4 comments

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 avatar Jul 07 '21 05:07 YuWang24

@YuWang24 could you provide a MRE and the karapace logs? Thanks

hackaugusto avatar Jul 07 '21 13:07 hackaugusto

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 avatar Jul 12 '21 03:07 YuWang24

@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?

hackaugusto avatar Jul 12 '21 08:07 hackaugusto

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.

YuWang24 avatar Jul 16 '21 04:07 YuWang24