On my standalone windows local machine i have apache kafka (2.11-2.0.0) along with my multi microservice app (spring java and python). For more than a year kafka ran fine. I never changed the settings nor touched it.
In the last week or so I noticed I was getting kafka issues in my app's logs
In python:
No broker metadata found in MetadataResponse -- ignoring.
In spring java:
Error while fetching metadata with correlation id 3: {abc.process.file.request=LEADER_NOT_AVAVAILABLE}
both errors were just spamming in the logs. Initially I thought this was app issue and I tried everything I could including wiping out the code and rebuilding from scratch only to get the same error
Only after a long time of researching I found a workaround to modify kafka's server properties with:
port = 9092
advertised.host.name = localhost
App now working as normal but my question is why would I have to change server settings when it ran fine for a year plus.
The only thing I can think of is that for the last week I've (unsuccessfully) tried using WSL2 to install docker which included playing around with network config but i don't see how that would impact a localhost run, I'm not connecting to anything outside my PC
Any help?