Comments (6)
You are right, the pointer type is not needed.
from confluent-kafka-go.
I nearly have a working solution for both produce and produce_batch I will attach a proposed diff for comments when I have something working
from confluent-kafka-go.
Well this now works for p.Produce calls see note about opaque param and opaque in kafka.Message the msg one overrides the param for now. This panics at runtime for batch version but this is a POC for your consideration. Also the cgomap type as uint64 so you don't have worrie about overflow IMO also should make the map faster.
This is based on @edenhill your testing branch with master merged in and with your change above
from confluent-kafka-go.
I just looked at your changes from int to uintptr so that isn't taken into account above. But I do think you want to make the map in setup() rather than the few other places your doing it now. Thx
from confluent-kafka-go.
uint64 would be very convenient but since we need to cast it to a pointer it wont work on 32-bit systems.
We're thus limited to a 32-bit id and the avoid-zero wrapping code at this time.
(I could it would be possible to provide a 64-bit implementaton supported platforms with build tags, but that's a future micro optimization excercise)
from confluent-kafka-go.
Thanks @ljackson, the opaque fix will be incorporated on the kafkatesting branch that will soon be meregd.
from confluent-kafka-go.
Related Issues (20)
- golang confluent kafka producer client running into error - Failed to create thread: Resource temporarily unavailable (11) HOT 1
- 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
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.