From abdf6882ed7b5a8a04680a0b590b904821a986aa Mon Sep 17 00:00:00 2001 From: Jake Remitz Date: Thu, 1 Aug 2024 13:31:34 -0500 Subject: [PATCH 1/2] Add missing TaskExecutorResource to jmx --- .../src/main/java/io/trino/server/ServerMainModule.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java b/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java index b89c5f3f1792..2df4912d3869 100644 --- a/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java +++ b/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java @@ -326,6 +326,7 @@ protected void setup(Binder binder) else { jaxrsBinder(binder).bind(TaskExecutorResource.class); newExporter(binder).export(TaskExecutorResource.class).withGeneratedName(); + newExporter(binder).export(TimeSharingTaskExecutor.class).withGeneratedName(); binder.bind(TaskExecutor.class) .to(TimeSharingTaskExecutor.class) From 24c4c92e5fa682aa1fadb16f6cd0e25c763ddbda Mon Sep 17 00:00:00 2001 From: Jake Remitz Date: Thu, 1 Aug 2024 13:45:24 -0500 Subject: [PATCH 2/2] Remove unused TaskExecutor from mbean --- .../src/main/java/io/trino/server/ServerMainModule.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java b/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java index 2df4912d3869..cbed7971a94c 100644 --- a/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java +++ b/core/trino-main/src/main/java/io/trino/server/ServerMainModule.java @@ -303,7 +303,6 @@ protected void setup(Binder binder) newOptionalBinder(binder, VersionEmbedder.class).setDefault().to(EmbedVersion.class).in(Scopes.SINGLETON); newExporter(binder).export(SqlTaskManager.class).withGeneratedName(); - newExporter(binder).export(TaskExecutor.class).withGeneratedName(); binder.bind(MultilevelSplitQueue.class).in(Scopes.SINGLETON); newExporter(binder).export(MultilevelSplitQueue.class).withGeneratedName(); binder.bind(LocalExecutionPlanner.class).in(Scopes.SINGLETON);