This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/skywalking-graalvm-distro.git
commit ce00a5cd56d166edfe9139a06968ff70f19cdb31 Author: Wu Sheng <[email protected]> AuthorDate: Thu Mar 12 11:37:41 2026 +0800 Add TTLDefinition to native image reflect-config for /status/config/ttl endpoint The baseline e2e test failed because the REST endpoint /status/config/ttl returns TTLDefinition, which Jackson cannot serialize in native image without reflection metadata. MetricsTTL and RecordsTTL were already covered by the GraphQL type scanner, but the wrapper TTLDefinition was not. --- .../skywalking/oap/server/buildtools/precompiler/Precompiler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-tools/precompiler/src/main/java/org/apache/skywalking/oap/server/buildtools/precompiler/Precompiler.java b/build-tools/precompiler/src/main/java/org/apache/skywalking/oap/server/buildtools/precompiler/Precompiler.java index 82007f2..11630e5 100644 --- a/build-tools/precompiler/src/main/java/org/apache/skywalking/oap/server/buildtools/precompiler/Precompiler.java +++ b/build-tools/precompiler/src/main/java/org/apache/skywalking/oap/server/buildtools/precompiler/Precompiler.java @@ -1372,7 +1372,9 @@ public class Precompiler { "org.apache.skywalking.oap.server.core.alarm.AlarmMessage", // LALOutputBuilder SPI: ServiceLoader instantiates to call name() for short-name resolution "org.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.DatabaseSlowStatementBuilder", - "org.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.SampledTraceBuilder" + "org.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.SampledTraceBuilder", + // TTL status REST endpoint: Jackson serializes TTLDefinition returned by /status/config/ttl + "org.apache.skywalking.oap.server.core.storage.ttl.TTLDefinition" }; for (String className : configPojos) { entries.add(fullAccessEntry(className));
