-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Remove LegacyCTRAListener from ShardStateAction #83842
Remove LegacyCTRAListener from ShardStateAction #83842
Conversation
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, but I find the .success(task, task)
a bit bleh -- if this ends up being a popular pattern for handling these, then a .success(task)
arity that juggles the types just so might be handy.
I like this pattern, though! It makes me want to revisit my two previous PRs and give them the same treatment.
Changed my mind, I think this pattern is tricksy for the general reason that re-using listeners is tricksy. It'd be worth it if profiling shows we create too many objects here but otherwise I would like to keep things clear - see 5f93f8e. |
@elasticmachine please run elasticsearch-ci/bwc |
Still LGTM. |
Hit #83567 twice :( @elasticmachine please run elasticsearch-ci/bwc |
Relates #83784