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

Fix: Reset message-header index while verifying checksum-strip at Reconnection #90

Merged
merged 1 commit into from
Oct 28, 2016

Conversation

rdhabalia
Copy link
Contributor

Motivation

At reconnection: before resending messages, producer verifies broker-version and removes checksum and modifies prepared message if requires. If message is not modified then message-header index is not reset correctly which can corrupt the message.

This problem would only happen in a mixed environment with 1.15 and 1.14 clients.

Fix is also available in 1.15.1

Modifications

Reset message-header index while stripping checksum.

Result

It will not corrupt message while resending message on reconnection.

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Oct 27, 2016
@rdhabalia rdhabalia added this to the 1.16 milestone Oct 27, 2016
@rdhabalia rdhabalia self-assigned this Oct 27, 2016
@yahoocla
Copy link

CLA is valid!

2 similar comments
@yahoocla
Copy link

CLA is valid!

@yahoocla
Copy link

CLA is valid!

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.

👍

@rdhabalia rdhabalia merged commit e7f08a8 into apache:master Oct 28, 2016
@rdhabalia rdhabalia deleted the cs_strip_master branch November 11, 2016 23:05
sijie added a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
* Move worker module out of runtime module

* Fix license header issues
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
* Removed unacked messages tracker

* Fixed tests
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants