Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

  • There's no real need for the caller's Logger just in case an impossible situation happens - we will get enough info from the log message.

  • Almost nobody uses the forceExecution feature, default it to false.

  • Accept an ExecutorService rather than requiring the whole ThreadPool only to look up the executor later on.

- There's no real need for the caller's `Logger` just in case an impossible
  situation happens - we will get enough info from the log message.

- Almost nobody uses the `forceExecution` feature, default it to
  `false`.

- Accept an `ExecutorService` rather than requiring the whole
  `ThreadPool` only to look up the executor later on.
@DaveCTurner DaveCTurner added :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >refactoring v8.7.0 labels Jan 24, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jan 24, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)


@Override
protected void doExecute(Task task, final Request request, ActionListener<Response> listener) {
// remove unneeded threading by wrapping listener with SAME to prevent super.doExecute from wrapping it with LISTENER
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hasn't been needed since 0b12cab!


@Override
protected void doExecute(Task task, final Request request, ActionListener<Response> listener) {
// remove unneeded threading by wrapping listener with SAME to prevent super.doExecute from wrapping it with LISTENER
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hasn't been needed since 0b12cab!

@DaveCTurner DaveCTurner merged commit 416bfcb into elastic:main Jan 25, 2023
@DaveCTurner DaveCTurner deleted the 2023-01-24-ThreadedActionListener-cleanup branch January 25, 2023 11:15
arteam added a commit to arteam/elasticsearch that referenced this pull request Jan 26, 2023
Use the new constructor signature for ThreadedActionListener from elastic#93184
arteam added a commit that referenced this pull request Jan 26, 2023
Use the new constructor signature for ThreadedActionListener from #93184
elasticsearchmachine pushed a commit that referenced this pull request Feb 21, 2023
ThreadedActionListener only relies on methods provided by `Executor` but
required to pass an `ExecutorService`. With this commit we relax the
required type to what's actually needed.

Relates #93184
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >refactoring Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.7.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants