Skip to content

Commit a87fdb9

Browse files
authored
fix(native): Differentiate connector CPU and IO pool thread name (prestodb#26645)
``` == NO RELEASE NOTE == ```
1 parent 9297555 commit a87fdb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presto-native-execution/presto_cpp/main/PrestoServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ std::vector<std::string> PrestoServer::registerVeloxConnectors(
12451245
if (numConnectorCpuThreads > 0) {
12461246
connectorCpuExecutor_ = std::make_unique<folly::CPUThreadPoolExecutor>(
12471247
numConnectorCpuThreads,
1248-
std::make_shared<folly::NamedThreadFactory>("Connector"));
1248+
std::make_shared<folly::NamedThreadFactory>("ConnectorCPU"));
12491249

12501250
PRESTO_STARTUP_LOG(INFO)
12511251
<< "Connector CPU executor has " << connectorCpuExecutor_->numThreads()
@@ -1259,7 +1259,7 @@ std::vector<std::string> PrestoServer::registerVeloxConnectors(
12591259
if (numConnectorIoThreads > 0) {
12601260
connectorIoExecutor_ = std::make_unique<folly::IOThreadPoolExecutor>(
12611261
numConnectorIoThreads,
1262-
std::make_shared<folly::NamedThreadFactory>("Connector"));
1262+
std::make_shared<folly::NamedThreadFactory>("ConnectorIO"));
12631263

12641264
PRESTO_STARTUP_LOG(INFO)
12651265
<< "Connector IO executor has " << connectorIoExecutor_->numThreads()

0 commit comments

Comments
 (0)