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


The following commit(s) were added to refs/heads/main by this push:
     new 3f5149c  Add AlarmRecoveryMessage to native image reflect-config
3f5149c is described below

commit 3f5149cae09bb2d4a1db730a481f2d182e8e6171
Author: Wu Sheng <[email protected]>
AuthorDate: Fri Mar 13 08:48:13 2026 +0800

    Add AlarmRecoveryMessage to native image reflect-config
    
    AlarmRecoveryMessage extends AlarmMessage with a recoveryTime field.
    Gson needs reflection access to serialize this subclass field in native
    image. Without it, recovery webhook JSON omits recoveryTime, causing
    the alarm e2e recovery test case to loop forever (sleep 60 per retry).
---
 .../skywalking/oap/server/buildtools/precompiler/Precompiler.java       | 2 ++
 1 file changed, 2 insertions(+)

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 11630e5..004e4de 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
@@ -1370,6 +1370,8 @@ public class Precompiler {
             "org.apache.skywalking.oap.server.core.alarm.AlarmSnapshotRecord",
             // Alarm webhook: Gson serializes AlarmMessage list to JSON for 
webhook POST
             "org.apache.skywalking.oap.server.core.alarm.AlarmMessage",
+            // Alarm recovery: extends AlarmMessage with recoveryTime field, 
serialized by Gson
+            "org.apache.skywalking.oap.server.core.alarm.AlarmRecoveryMessage",
             // 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",

Reply via email to