Comments (1)
When you test with current version of docker-compose.yaml bug is even more noticeable.
With current docker-compose broker id is set to 1, and when I run your example code I am getting result similar to this:
kafka.Broker{Host:"127.0.0.1", Port:9092, ID:0, Rack:""}
kafka.Broker{Host:"localhost", Port:9092, ID:1, Rack:""}
[]kafka.Broker{kafka.Broker{Host:"localhost", Port:9092, ID:1, Rack:""}}
Call to Broker()
is returning default connection parameters. In your case Broker ID was set to 0 and because of that ID looked as expected, but in reality if ID of connected broker is not 0 you will still get ID = 0 for connected broker.
from kafka-go.
Related Issues (20)
- Can I use select to readmessage? HOT 1
- WriteMessages can force metadata updates when occur NotLeaderForPartition error HOT 1
- FetchMessage returns io.EOF when reader not closed
- Need to upgrade to Kafka Client version 3.6.0 HOT 1
- How do producers obtain the partition and offset of message sending HOT 2
- Kafka Compatibility for the Client versions HOT 2
- docs: An example of using Writer to create a missing topic imports has an import error in README HOT 1
- How can I get the latest message in a topic? HOT 2
- Ability to describe Kafka topic HOT 4
- How can I specify the producer serializer and consumer deserializer? HOT 1
- Incorrect documentation in the code ReaderConfig.RetentionTime HOT 1
- suggestion: replace existing Log interface with log/slog
- The default value of fetch.max.wait.ms HOT 1
- `reader.Close()` stuck randomly HOT 1
- Make `(msg *Message) totalSize()` public
- Asynchronous mode in kafka package not working
- Duplicate consumption occurs when join a new consumer and CommitInterval is configured HOT 1
- After increasing partition count, consumer group is not assigned to the new partitions. HOT 1
- Observability : Kafka Consumer/Producer metrics and tracing.
- Subscribe topic on demand
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kafka-go.