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 7851][C++] Make clear() thread-safe #7862

Merged
merged 2 commits into from
Aug 23, 2020

Conversation

BewareMyPower
Copy link
Contributor

Fixes #7851

Motivation

clear() methods of BatchAcknowledgementTracker and UnAckedMessageTrackerEnabled are not thread-safe.

Modifications

Acquire a mutex in these clear() methods.

@jiazhai
Copy link
Member

jiazhai commented Aug 21, 2020

/pulsarbot run-failure-checks

@BewareMyPower
Copy link
Contributor Author

Seems that there's something wrong with testPartitionTopicUnAckedMessageTimeout, I'm going to handle it.

@BewareMyPower
Copy link
Contributor Author

/pulsarbot run-failure-checks

@jiazhai jiazhai requested review from merlimat and wolfstudy August 21, 2020 13:29
@jiazhai jiazhai merged commit 97f4112 into apache:master Aug 23, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
Fixes apache#7851 

### Motivation

`clear()` methods of `BatchAcknowledgementTracker` and `UnAckedMessageTrackerEnabled` are not thread-safe.

### Modifications

Acquire a mutex in these `clear()` methods.
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
Fixes apache#7851 

### Motivation

`clear()` methods of `BatchAcknowledgementTracker` and `UnAckedMessageTrackerEnabled` are not thread-safe.

### Modifications

Acquire a mutex in these `clear()` methods.
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
Fixes apache#7851 

### Motivation

`clear()` methods of `BatchAcknowledgementTracker` and `UnAckedMessageTrackerEnabled` are not thread-safe.

### Modifications

Acquire a mutex in these `clear()` methods.
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Sep 5, 2020
Fixes apache#7851 

### Motivation

`clear()` methods of `BatchAcknowledgementTracker` and `UnAckedMessageTrackerEnabled` are not thread-safe.

### Modifications

Acquire a mutex in these `clear()` methods.
jiazhai pushed a commit to jiazhai/pulsar that referenced this pull request Oct 16, 2020
Fixes apache#7851

### Motivation

`clear()` methods of `BatchAcknowledgementTracker` and `UnAckedMessageTrackerEnabled` are not thread-safe.

### Modifications

Acquire a mutex in these `clear()` methods.
(cherry picked from commit 97f4112)
@jiazhai
Copy link
Member

jiazhai commented Oct 16, 2020

already merged into branch-2.6:
9d024040499805a0536d745b2f9ddce3da9ca983  

wolfstudy added a commit that referenced this pull request Oct 30, 2020
wolfstudy pushed a commit that referenced this pull request Oct 30, 2020
Fixes #7851 

### Motivation

`clear()` methods of `BatchAcknowledgementTracker` and `UnAckedMessageTrackerEnabled` are not thread-safe.

### Modifications

Acquire a mutex in these `clear()` methods.

(cherry picked from commit 97f4112)
@BewareMyPower BewareMyPower deleted the issue-7851-dev branch September 16, 2022 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pulsar-client-cpp crashes consumer due to thread safty
2 participants