Closed zambrovski closed 2 years ago
Hi Simon, I'll try to reproduce the problem locally. Could you please share the kafka server / broker version used? Not sure if that's relevant but it might be helpful.
I observed the same behavior on:
wurstmeister/kafka:latest
(wurstmeister/kafka@sha256:2d4bbf9cc83d9854d36582987da5f939fb9255fb128d18e3cf2c6ad825a32751
) created on 2022-05-28T09:30:54.604933291Z
labeled: 2.13_2.8.1 on amd64/linuxI believe this is not a server problem.
Hi @zambrovski, with Redpanda and a mimimal setup, it is working. If you want, this is the app I created to test. Do you maybe also use the consumer directly to either commit offsets or to subscribe to a topic?
Hi Gerard. We Don't use the consumer directly but use Spring Cloud Streams Kafka only. The one idea I have on it is a reconnect. Since we use it with Azure Event Hubs we observe a "relogin" because of the token expiration in Azure. I believe this could cause some problems with the consumer not assigned to anything... And - it is not deterministic, but happens eventually.
This is probably difficult to reproduce but I'll send some time on that and will try to create a test setup for this.
Just as a side note - deprecation of two methods and changing the implementation from using group id to not using group id but manually assigning partitions is to me not a patch-level change. Since it was a patch level (reported by a renovate-bot), we weaved without double checking and got a surprising result.... To me - it should be at least "minor" - the bahaviour changed.
The change certainly is debateble, I figured as a big fix. Also the maintenance branch still has the 'this is a beta' in the readme 😉. To me it also made little since to supply a groupid, and then turn it into something random.
Having said that, I wasn't expecting thing like this to pop up. I'm not sure of the exception could be catched, and then just have the app consumer reassign the partitions would work. Or call assingment()
on the consumer each time before polling, but that seems a bit weird.
Gerard,
I was somehow hunting a ghost. After I set the group
related attributes to null
and deployed everything, it seem to be running without any problems.
I'll close this issue with a wish to communicate changes (like deprecation of methods and changing behaviour) using semantic versioning.
Sorry,
Simon
Hi Simon,
Good to hear it was ok in the and. I'll also asked in the Kafka community if someone had similar issues, but nobody responded. The tricky thing with the fix was that it was something between a bugfix and an enhancement. Not deprecating the methods, but only effectively make them not do anything anymore would also have been weird.
Basic information
Steps to reproduce
Switched from 4.5.3 to 4.5.4
Expected behaviour
No errors in log, since it is a patch release.
Actual behaviour