-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add LedgerId,EntryId,BatchIdx,PartitionIdx func for MessageId interface #529
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yorkhellen work for this, the change LGTM +1, just a little comments, please check?
pulsar/impl_message_test.go
Outdated
assert.Equal(t, int64(2), id2.EntryId()) | ||
assert.Equal(t, int32(3), id2.BatchIdx()) | ||
assert.Equal(t, int32(4), id2.PartitionIdx()) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not cover the current function in the original test case. Can you add a new test case to cover this feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
pulsar/impl_message_test.go
Outdated
"github.com/stretchr/testify/assert" | ||
"testing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here go's ci check should fail, please make sure that Action CI is passable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
In some cases, consumers need to obtain the ledgerId, entryId, batchId, partitionidx of the messageId.
This expose LedgerId EntryId BatchId PartitionIdx func for MessageId interface.