You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2026/04/27 14:38:37 UTC

(skywalking) branch feature/runtime-rule-hot-update updated: runtime-rule IT: tighten BanyanDB metadata-cache TTL to 1s

This is an automated email from the ASF dual-hosted git repository.

wu-sheng pushed a commit to branch feature/runtime-rule-hot-update
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/feature/runtime-rule-hot-update by this push:
     new 5e0571e2b5 runtime-rule IT: tighten BanyanDB metadata-cache TTL to 1s
5e0571e2b5 is described below

commit 5e0571e2b58c0dbe36a33711ff4a8074238ec591
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Mon Apr 27 22:38:24 2026 +0800

    runtime-rule IT: tighten BanyanDB metadata-cache TTL to 1s
    
    BanyanDB exposes --measure-metadata-cache-wait-duration /
    --stream-metadata-cache-wait-duration / --trace-metadata-cache-wait-duration
    explicitly for testing — they bound how long the server-side resolver waits
    for metadata cache to load. Default is the production cache TTL, which races
    with delete-measure + define cycles in the runtime-rule ITs (post-recreate
    writes target a stale internal measure id and drop). 1s clears that race
    deterministically and lifts MalApplyRollbackIT to 7/7. The remaining
    MalShapeBreakIT.removeThenReapplyOriginalShapeRestoresOldMeasure failure is a
    separate measure-flush-budget issue (backdated samples in minute buckets) and
    will be addressed independently.
---
 .../skywalking/oap/server/library/it/BanyanDBTestContainer.java    | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/oap-server/server-library/library-integration-test/src/main/java/org/apache/skywalking/oap/server/library/it/BanyanDBTestContainer.java b/oap-server/server-library/library-integration-test/src/main/java/org/apache/skywalking/oap/server/library/it/BanyanDBTestContainer.java
index 1e116b3be5..88367f5cdf 100644
--- a/oap-server/server-library/library-integration-test/src/main/java/org/apache/skywalking/oap/server/library/it/BanyanDBTestContainer.java
+++ b/oap-server/server-library/library-integration-test/src/main/java/org/apache/skywalking/oap/server/library/it/BanyanDBTestContainer.java
@@ -75,6 +75,13 @@ public final class BanyanDBTestContainer {
             "standalone",
             "--stream-root-path", "/tmp/banyandb-stream-data",
             "--measure-root-path", "/tmp/banyand-measure-data",
+            // Drive the testing-only metadata cache wait flags down to 1s so a
+            // delete-measure + define cycle isn't silently absorbed by stale resolver
+            // cache (otherwise post-recreate writes target the old internal measure id
+            // and disappear).
+            "--measure-metadata-cache-wait-duration", "1s",
+            "--stream-metadata-cache-wait-duration", "1s",
+            "--trace-metadata-cache-wait-duration", "1s",
         };
     }
 }