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

[C++] Fix the unstable unit tests failure #8141

Merged
merged 1 commit into from Sep 27, 2020

Conversation

BewareMyPower
Copy link
Contributor

Fixes #8128

Motivation

The send callback of BatchMessageTest is modifing a global variable which is the count of successfully produced messages. So some tests may failed in multi-thread environment.

Modifications

  • Add a MessageCountSendCallback class to replace the current send callback function

@BewareMyPower
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@BewareMyPower
Copy link
Contributor Author

/pulsarbot run-failure-checks

@jiazhai jiazhai added this to the 2.7.0 milestone Sep 27, 2020
@jiazhai jiazhai merged commit bb89e79 into apache:master Sep 27, 2020
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Oct 3, 2020
Fixes apache#8128 

### Motivation

The send callback of `BatchMessageTest` is modifing a global variable which is the count of successfully produced messages. So some tests may failed in multi-thread environment.

### Modifications

- Add a `MessageCountSendCallback` class to replace the current send callback function
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
Fixes apache#8128 

### Motivation

The send callback of `BatchMessageTest` is modifing a global variable which is the count of successfully produced messages. So some tests may failed in multi-thread environment.

### Modifications

- Add a `MessageCountSendCallback` class to replace the current send callback function
@BewareMyPower BewareMyPower deleted the cpp-test-dev branch December 2, 2020 07:26
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.

[cpp-tests] CI test BatchMessageTest.testIndividualAck is unstable and fails frequently on many PRs
2 participants