Skip to content

Commit

Permalink
bug and test name.
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed May 31, 2024
1 parent 6a7ead0 commit ff85285
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ public void onConnectionClosed(Transport.Connection connection) {
// we used to fork to a different thread always to avoid stack overflows, but we avoid doing that now, expecting handlers
// to handle that themselves instead.
var executor = handler.executor();
if (executor == EsExecutors.DIRECT_EXECUTOR_SERVICE) {
if (executor == EsExecutors.DIRECT_EXECUTOR_SERVICE && enableStackOverflowAvoidance) {
executor = threadPool.generic();
}
if (executor == EsExecutors.DIRECT_EXECUTOR_SERVICE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public void testOnConnectionClosedUsesHandlerExecutor() {
}
}

public void testOnConnetionCloseStackOverflowAvoidance() {
public void testOnConnectionCloseStackOverflowAvoidance() {
onConnectionClosedUsesHandlerExecutor(
Settings.builder().put(TransportService.ENABLE_STACK_OVERFLOW_AVOIDANCE.getKey(), true).build(),
Executors.DIRECT,
Expand Down

0 comments on commit ff85285

Please sign in to comment.