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 ConcurrentModificationException #9088

Merged
merged 2 commits into from
Jan 4, 2021
Merged

Conversation

aloyszhang
Copy link
Contributor

Fixes #9087

Motivation

This PR fix the ConcurrentModificationException when broker start with kop enabled.

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Lgtm

Do we have tests that start a broker with two topics and reproduce the error?

@jiazhai
Copy link
Member

jiazhai commented Dec 30, 2020

@aloyszhang . it would be better to have a test as enrico mentioned to protect this part of code.

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie added this to the 2.8.0 milestone Dec 30, 2020
@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang
Copy link
Contributor Author

@eolivelli This problem is exactly caused by delete element while traversing the HashSet for single topic

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@jiazhai
Copy link
Member

jiazhai commented Jan 2, 2021

/pulsarbot run-failure-checks

@jiazhai
Copy link
Member

jiazhai commented Jan 3, 2021

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor

@aloyszhang please rebase the master branch

@aloyszhang
Copy link
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie merged commit 4b453c5 into apache:master Jan 4, 2021
@aloyszhang aloyszhang deleted the con-modify branch January 22, 2021 11:58
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.

kop meet ConcurrentModificationException
5 participants