hugomcruz commented on issue #485:
URL: 
https://github.com/apache/pulsar-client-go/issues/485#issuecomment-795020398


   Yeh. I fixed it with a work around. 
   By adding "padding" to align the 64 bits Uint64 it solved the problem.  For 
now, I fixed just for the producer by changing the files:
   
   - rpc_client.go
   
   type rpcClient struct {
        requestIDGenerator  uint64
        producerIDGenerator uint64
        consumerIDGenerator uint64
        **pad                 uint32**
        serviceNameResolver ServiceNameResolver
        pool                ConnectionPool
        requestTimeout      time.Duration
        log                 log.Logger
        metrics             *Metrics
   }
   
   - producer_partition.go
   
   type partitionProducer struct {
        state  ua.Int32
        client *client
        topic  string
        log    log.Logger
        cnx    internal.Connection
   
        options             *ProducerOptions
        producerName        string
        producerID          uint64
        **pad                 uint32**
        batchBuilder        internal.BatchBuilder
        sequenceIDGenerator *uint64
        batchFlushTicker    *time.Ticker
   .... (strut has more variables)
   
   Now I have my producer code running fine in the Raspberry Pi 2. 
   
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to