nest
nest copied to clipboard
Kafka microservice throw Error when first connect to server
trafficstars
Is there an existing issue for this?
- [X] I have searched the existing issues
Current behavior
I start kafka in docker, with bitnami/kafka:3.3.2, it create clean kafka server. Than i start nestjs microservice, which throw Error This server does not host this topic-partition. Even though I've written in config allowAutoTopicCreation: true.
I need to restart nest to make the connection happen.
Minimum reproduction code
https://github.com/sollidy/nest-monorepo-example
Steps to reproduce
- docker-compose up -d
- yarn install
- yarn start:dev-piscina-compute
Before new try, you need firstry down containers docker-compose down
Expected behavior
Creating new topics in Kafka without throwing Error
Package
- [ ] I don't know. Or some 3rd-party package
- [ ]
@nestjs/common - [ ]
@nestjs/core - [X]
@nestjs/microservices - [ ]
@nestjs/platform-express - [ ]
@nestjs/platform-fastify - [ ]
@nestjs/platform-socket.io - [ ]
@nestjs/platform-ws - [ ]
@nestjs/testing - [ ]
@nestjs/websockets - [ ] Other (see below)
Other package
No response
NestJS version
10.3.2
Packages versions
[System Information]
OS Version : Linux 6.7.4-100.fc38.x86_64
NodeJS Version : v18.19.0
YARN Version : 4.1.0
[Nest CLI]
Nest CLI Version : 10.3.2
[Nest Platform Information]
platform-express version : 10.3.2
microservices version : 10.3.2
schematics version : 10.1.1
testing version : 10.3.2
common version : 10.3.2
core version : 10.3.2
cli version : 10.3.2
Node.js version
18.19.0
In which operating systems have you tested?
- [ ] macOS
- [ ] Windows
- [X] Linux
Other
No response