-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove sync from ConnectionTarget#toString
#128656
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
Merged
elasticsearchmachine
merged 2 commits into
elastic:main
from
DaveCTurner:2025/05/30/ConnectionTarget-toString
Jun 4, 2025
Merged
Remove sync from ConnectionTarget#toString
#128656
elasticsearchmachine
merged 2 commits into
elastic:main
from
DaveCTurner:2025/05/30/ConnectionTarget-toString
Jun 4, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When introduced in elastic#39629 we needed to acquire `mutex` here because the `toString()` result included a mutable field, but we dropped that field in elastic#77295. This commit removes the now-unnecessary synchronization.
Collaborator
|
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
schase-es
reviewed
Jun 3, 2025
Contributor
schase-es
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
nicktindall
approved these changes
Jun 3, 2025
Contributor
nicktindall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
schase-es
approved these changes
Jun 4, 2025
Contributor
|
Oof, I realized I just commented and didn't approve... |
DaveCTurner
added a commit
to DaveCTurner/elasticsearch
that referenced
this pull request
Jun 4, 2025
When introduced in elastic#39629 we needed to acquire `mutex` here because the `toString()` result included a mutable field, but we dropped that field in elastic#77295. This commit removes the now-unnecessary synchronization.
Collaborator
💚 Backport successful
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
auto-backport
Automatically create backport pull requests when merged
auto-merge-without-approval
Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!)
:Distributed Coordination/Network
Http and internode communication implementations
>non-issue
Team:Distributed Coordination
Meta label for Distributed Coordination team
v8.19.0
v9.1.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When introduced in #39629 we needed to acquire
mutexhere because thetoString()result included a mutable field, but we dropped that fieldin #77295. This commit removes the now-unnecessary synchronization.