Debugger not stopping on breakpoints for Kafka listeners #1935
-
Greetings, Once connected, breakpoints work fine for ReST and GRPC endpoints. However, breakpoints fail to stop when on Kafka listeners. More specifically, on methods annotated with Spring Is this a known issue? Any workarounds? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @cbfaucherupgrade - Happy to hear that you love mirrord! |
Beta Was this translation helpful? Give feedback.
-
I see. I thought the mirroring of inputs/outputs would cover for that. |
Beta Was this translation helpful? Give feedback.
Hi @cbfaucherupgrade - Happy to hear that you love mirrord!
Do you see your local service getting the messages? It is very likely that since Kafka is a service you connect to and retrieve messages from, your local service is added as another replica/consumer in the group, and if there isn't an available partition to read from it'd be idle, since Kafka can have max consumers on consumer group equal to the partitions count.
If you want to read the messages instead of the deployed service, you can use the pause feature to make the targeted pod frozen while you use mirrord, then it'll replace it as a consumer and so get messages.
More info - https://mirrord.dev/docs/guides/pause/