You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/06/05 05:35:15 UTC

[GitHub] [pulsar] wolfstudy opened a new issue #4476: [Go client]MessageID output order error

wolfstudy opened a new issue #4476: [Go client]MessageID output order error
URL: https://github.com/apache/pulsar/issues/4476
 
 
   **Describe the bug**
   
   MessageID output order error
   
   
   **To Reproduce**
   
   `PulsarApi.proto` file definition:
   
   ```
   message MessageIdData {
   	required uint64 ledgerId = 1;
   	required uint64 entryId  = 2;
   	optional int32 partition = 3 [default = -1];
   	optional int32 batch_index = 4 [default = -1];
   }
   ```
   
   test code (enable batch and batch size is 5, the topic no partition) :
   
   ```
   (11,16,0,-1)
   (11,16,1,-1)
   (11,16,2,-1)
   (11,16,3,-1)
   (11,16,4,-1)
   (11,17,0,-1)
   (11,17,1,-1)
   (11,17,2,-1)
   (11,17,3,-1)
   (11,17,4,-1)
   ```
   
   We can see that the order of `batch_size` is opposite to the order of `partitions`.
   
   **Expected behavior**
   
   ```
   (11,16,-1,0)
   (11,16,-1,1)
   (11,16,-1,2)
   (11,16,-1,3)
   (11,16,-1,4)
   (11,17,-1,0)
   (11,17,-1,1)
   (11,17,-1,2)
   (11,17,-1,3)
   (11,17,-1,4)
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services