Skip to content
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

Issue 1455: MessageID has always batch index 0 when sending messages in a batch #2099

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

sijie
Copy link
Member

@sijie sijie commented Jul 6, 2018

Motivation

Fixes #1455.

Pulsar uses a callback chain for completing the list of callbacks for a batch. However the callback chain doesn't reference the message instance for completing the callback.
so when callback chain is triggered, it always uses the first message id to complete the chain of callbacks.

Changes

Introduce a field to keep message instance in the callback chain. So when the chain is invoked, each callback can use the right message instance to complete the callback.

Added an integration test to ensure it works correctly.

…in a batch

*Motivation*

Fixes apache#1455.

Pulsar uses a callback chain for completing the list of callbacks for a batch. However the callback chain doesn't reference the message instance for completing the callback.
so when callback chain is triggered, it always uses the first message id to complete the chain of callbacks.

*Changes*

Introduce a field to keep message instance in the callback chain. So when the chain is invoked, each callback can use the right message instance to complete the callback.

Added an integration test to ensure it works correctly.
@sijie sijie added type/bug The PR fixed a bug or issue reported a bug area/client labels Jul 6, 2018
@sijie sijie added this to the 2.1.0-incubating milestone Jul 6, 2018
@sijie sijie self-assigned this Jul 6, 2018
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@sijie sijie merged commit 83e3157 into apache:master Jul 6, 2018
@sijie sijie deleted the issue_1455 branch July 6, 2018 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants