Skip to content

Fix partition key not set in batch builder#175

Merged
merlimat merged 1 commit intoapache:masterfrom
wolfstudy:xiaolong/fix-partition-key-not-set
Jan 16, 2020
Merged

Fix partition key not set in batch builder#175
merlimat merged 1 commit intoapache:masterfrom
wolfstudy:xiaolong/fix-partition-key-not-set

Conversation

@wolfstudy
Copy link
Member

Signed-off-by: xiaolong.ran rxl@apache.org

Motivation

Currently, when we specify the Key for the message, the broker can not receive the partition key.

image

Modifications

  • set partition key in BatchBuilder

Signed-off-by: xiaolong.ran <rxl@apache.org>
@wolfstudy wolfstudy requested review from merlimat and sijie January 16, 2020 15:29
@wolfstudy wolfstudy self-assigned this Jan 16, 2020
@wolfstudy wolfstudy requested a review from jiazhai January 16, 2020 15:32
@wolfstudy
Copy link
Member Author

@sijie @merlimat @jiazhai PTAL thanks


ctx := context.Background()
for i := 0; i < 10; i++ {
for i := 0; i < 100; i++ {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of changing this from 10 -> 100?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to ensure that every consumer receives a message

@merlimat merlimat merged commit 6a08460 into apache:master Jan 16, 2020
@wolfstudy wolfstudy added this to the 0.1.0 milestone Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments