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

DefaultDnsClient ConcurrentModificationException #2424

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

Scottmitch
Copy link
Member

Motivation:
DefaultDnsClient takes the List from the Netty's DNS client and sorts it. This may result in a ConcurrentModificationException if the underlying cache modifies this list.

Modifications:

  • Make a copy of the List we get back from Netty before we sort the collection and retain a reference.

Motivation:
DefaultDnsClient takes the List from the Netty's DNS client
and sorts it. This may result in a ConcurrentModificationException
if the underlying cache modifies this list.

Modifications:
- Make a copy of the List we get back from Netty before we sort
  the collection and retain a reference.
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

🎖

@Scottmitch
Copy link
Member Author

test failure due to #2378

@Scottmitch Scottmitch merged commit 72af80a into apple:main Nov 15, 2022
@Scottmitch Scottmitch deleted the dns_concurrent_mod branch November 15, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants