Repository navigation
Commit 3b86c3a
authored
Harden the BanyanDB rotation e2e and stabilize K8sInfoRegistryTest (#14184)
* Harden the BanyanDB rotation e2e: topology before rotating, writes after
The credentials rotation case now waits for the provider dependency before
it rotates, as the CA rotation case does since #14181. Its incomplete
credentials make BanyanDB reject writes for about ten seconds; when the
OAP's first flush of the provider:9090 network address alias fell in that
window, the bulk writer had already completed the write (it does so on
send), the unchanged alias was not rewritten for five minutes, and the
provider dependency missed the consumer's CLIENT side past the retry budget.
Both cases also prove that writes go through after the rotation. Their
topology assertions use swctl's default range, the last 30 minutes, which
rows written before the rotation satisfy too. The step where the last
rotation takes effect (credentials restored; the rebuild that trusts the new
CA only) records its time once in the OAP container, and a final check asks
for the provider topology from the next minute on only.
Claude-Session: https://claude.ai/code/session_01HB9k74NvEPgCxFzHcyz58H
* Bound K8sInfoRegistryTest's waits by the regressions, not the timeout plus 500 ms
aStepWaitsForAllItsPodsWithinOneTimeout failed on the macOS runner with 2547
and 2567 ms against "under the 2 s timeout + 500 ms": the runner adds about
550 ms on top of the timeout, and a longer timeout would carry the same
overhead. Its upper bound is now the 3.5 s five reads take one after another,
which waiting for every read reaches and waiting the timeout per pod exceeds.
stepsOverTheSamePodsWaitTheTimeoutAtMostInAllWhileALimitedQueueDrains had the
same 500 ms margin; it now allows 1.5 s, under the 4.2 s its six reads take one
after another and the timeout per step. The lower bound is unchanged.1 parent f4d38fd commit 3b86c3a
4 files changed
Lines changed: 42 additions & 5 deletions
File tree
- docs/en/changes
- oap-server/analyzer/meter-analyzer/src/test/java/org/apache/skywalking/oap/meter/analyzer/v2/k8s
- test/e2e-v2/cases/storage/banyandb
- auth-rotation
- ca-rotation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
| |||
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
135 | | - | |
| 139 | + | |
| 140 | + | |
136 | 141 | | |
137 | 142 | | |
138 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | | - | |
| 93 | + | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
102 | 119 | | |
103 | 120 | | |
104 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
112 | 125 | | |
113 | 126 | | |
114 | 127 | | |
| |||
0 commit comments