From 83598e98cc2518e86bbb0288c2971b7f1e2e599b Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Fri, 28 Jun 2024 00:31:26 +0200 Subject: [PATCH] Add a debug info for native status --- core/trino-main/src/main/java/io/trino/server/Server.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/trino-main/src/main/java/io/trino/server/Server.java b/core/trino-main/src/main/java/io/trino/server/Server.java index decd559d8011..2d391d977e3f 100644 --- a/core/trino-main/src/main/java/io/trino/server/Server.java +++ b/core/trino-main/src/main/java/io/trino/server/Server.java @@ -22,6 +22,9 @@ import com.google.inject.TypeLiteral; import io.airlift.bootstrap.ApplicationConfigurationException; import io.airlift.bootstrap.Bootstrap; +import io.airlift.compressor.lz4.Lz4NativeCompressor; +import io.airlift.compressor.snappy.SnappyNativeCompressor; +import io.airlift.compressor.zstd.ZstdNativeCompressor; import io.airlift.discovery.client.Announcer; import io.airlift.discovery.client.DiscoveryModule; import io.airlift.discovery.client.ServiceAnnouncement; @@ -187,6 +190,10 @@ private void doStart(String trinoVersion) injector.getInstance(StartupStatus.class).startupComplete(); + log.info("Zstd native is %s", ZstdNativeCompressor.isEnabled() ? "enabled" : "disabled"); + log.info("Snappy native is %s", SnappyNativeCompressor.isEnabled() ? "enabled" : "disabled"); + log.info("Lz4 native is %s", Lz4NativeCompressor.isEnabled() ? "enabled" : "disabled"); + log.info("Server startup completed in %s", Duration.nanosSince(startTime).convertToMostSuccinctTimeUnit()); log.info("======== SERVER STARTED ========"); }