Comments (10)
@edenhill #115 turned out to be my issue. Working fine now.
from confluent-kafka-go.
Do both topics exist in the cluster?
from confluent-kafka-go.
yes, they do, I've also tested it and reproduced locally...
from confluent-kafka-go.
@edenhill I've tested now using a regex and it works (only 1 topic passed to SubscribeTopics containing a regex that matches two topics) but still, sending two topics in a slice makes it only subscribe to the last one
from confluent-kafka-go.
I can't reproduce this:
$ ./consumer_example :9093 g1 xtest1 xtest2 xtest3
Created Consumer rdkafka#consumer-1
% Message on xtest1[0]@0:
msg1
% Reached EOF at xtest1[0]@1(Broker: No more messages)
% Message on xtest2[0]@0:
msg2
% Message on xtest3[0]@0:
msg3
% Reached EOF at xtest2[0]@1(Broker: No more messages)
% Reached EOF at xtest3[0]@1(Broker: No more messages)
Ignored OffsetsCommitted (<nil>, [xtest1[0]@1 xtest2[0]@1 xtest3[0]@1])
Is your q.assignPartitions() loosing the extra topics perhaps?
from confluent-kafka-go.
Can you print q.Topics
prior to calling SubscribeTopics?
from confluent-kafka-go.
@edenhill is it possible that my assignPartitions is overwriting assignments?
func (q *KafkaConsumer) assignPartitions(partitions []kafka.TopicPartition) error {
l := q.Logger.WithFields(logrus.Fields{
"method": "assignPartitions",
"partitions": fmt.Sprintf("%v", partitions),
})
l.Debug("Assigning partitions...")
err := q.Consumer.Assign(partitions)
if err != nil {
l.WithError(err).Error("Failed to assign partitions.")
return err
}
l.Info("Partitions assigned.")
return nil
}
full code is here
https://github.com/topfreegames/pusher/blob/master/extensions/kafka_consumer.go
if you do not find something that may be causing this, I will investigate it further, for now I got it to work using regex anyway, so this is not critic for me anymore, but I'm willing to help if you need
from confluent-kafka-go.
The code looks fine, can't see anything obvious.
Could you add some debugging and see where the topic lists gets lost?
from confluent-kafka-go.
Did anyone solve this issue?
Thanks,
from confluent-kafka-go.
@qrpike What is the exact issue you are seeing? And do you have some code to show?
from confluent-kafka-go.
Related Issues (20)
- Automatic offset commit led to the loss of some messages HOT 2
- delivery.report.only.error check does not work in case type of the value is not boolean
- Async Producer Panic HOT 1
- Is the producer a tcp keepalive connection
- Signal: bus error when running on macos sonoma 14.4.1 HOT 1
- allow us to unsubscribe from a topic more easily HOT 4
- Producer messages stuck flushing even though there weren't any writes. HOT 4
- Consumers unable to join group until group leader is restarted HOT 3
- Newly added consumers with different version of library in group are not consuming from subscribed topics.
- Schema reference for JSON schemas HOT 1
- consumer recived repeat message after crash
- Does confluent-kafka-go producer PartitionAny is round robin produce message to kafka? HOT 1
- Can we set krb5.conf path for kinit?
- Duplicate messages consumed during rebalancing HOT 2
- Schema Registry misleading error message when unauthorized
- Segmentation violation Error with confluent kafka GO sdk v2 HOT 3
- Can't provide my own http.Client to schemaregistroy.Client via schemaregistry.Config HOT 2
- Question about producer and deliveryChan HOT 3
- go get couldn't download kafka HOT 2
- Producer messages not flushing after Flush()? HOT 1
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 confluent-kafka-go.