tobgu opened a new issue #3177: MessageID always seems to serialize to empty 
slice in Go client Reader
URL: https://github.com/apache/pulsar/issues/3177
 
 
   #### Expected behavior
   
   ```go
   // Error checks left for brevity, these are checked in real code
   reader, _ := client.CreateReader(pulsar.ReaderOptions{
        Topic:          "foo",
        StartMessageID: pulsar.LatestMessage})
   
   ctx, cancel := context.WithTimeout(context.Background(), 1000 * 
time.Millisecond)
   defer cancel()
   msg, err := r.reader.Next(ctx)
   if err != nil {
      // I would expect this to print a byte slice with length > 0 but it's
      // always an empty slice...
      fmt.Printf("ID: %v", msg.ID().Serialize())
   }
   ```
   #### Actual behavior
   
   Message ID always seems to be empty.
   
   #### Steps to reproduce
   See example above. The behaviour is the same on a standalone cluster and a 
full blown cluster with 3 x zookeeper, 3 x broker and 3 x bookie.
   
   #### System configuration
   **Pulsar version**: 2.2.0
   **Go client version**:
   github.com/apache/pulsar v2.2.0+incompatible 
h1:i2dfg67DNdHRgdzdIiSObTb9VRavAtZStxC4YIySxAI=
   github.com/apache/pulsar v2.2.0+incompatible/go.mod 
h1:7npmYEEu+jEeIMdpGSJwrTxUB86OW/UM5IkJCAyfl5Y=
   g
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to