Skip to content

fix ConcurrentModificationException - #9088

Merged
sijie merged 2 commits into
apache:masterfrom
aloyszhang:con-modify
Jan 4, 2021
Merged

fix ConcurrentModificationException#9088
sijie merged 2 commits into
apache:masterfrom
aloyszhang:con-modify

Conversation

@aloyszhang

Copy link
Copy Markdown
Contributor

Fixes #9087

Motivation

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

@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

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

jiazhai commented Dec 30, 2020

Copy link
Copy Markdown
Member

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

@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie added this to the 2.8.0 milestone Dec 30, 2020
@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@aloyszhang

Copy link
Copy Markdown
Contributor Author

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

@aloyszhang

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@jiazhai

jiazhai commented Jan 2, 2021

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@jiazhai

jiazhai commented Jan 3, 2021

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@codelipenghui

Copy link
Copy Markdown
Contributor

@aloyszhang please rebase the master branch

@aloyszhang

Copy link
Copy Markdown
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