Repository navigation
Commit f994ba4
committed
test(opensearch): correct the rolling-restart log order in the roll-gate comment
The podLogs catch comment described the reconciler's log order backwards. It
presented CheckClusterStatusForRestart as the "last gate" whose silent hold
is detected by the absence of "Starting rolling restart of the StatefulSet".
Both halves are wrong. Against opensearch-k8s-operator v2.8.0, that log line
prints at rollingRestart.go:155 -- after the early gates (Initialized :123,
ready-replica :94, updated/ready-pods :150-154) and before the health gate
CheckClusterStatusForRestart at :177 -- so its absence flags an EARLIER gate
holding silently, not the health gate. The health gate is not silent and not
last: it logs "Couldn't proceed with rolling restart ... because <reason>" at
:182 on each 10s requeue (for the mount-plan incident, "waiting for health to
be green", os_data_service.go:180), and PreparePodForDelete at :195 follows
it.
That "Couldn't proceed ... because" line is the real diagnostic for a health
hold, which the adjacent tail-size comment already relies on ("one health log
per ~10s"); the old framing contradicted it. Rewrite the comment to name the
line, keep pointing to the function rather than a position, and preserve the
health-vs-reachability wording. Comment-only; the asserts are byte-unchanged.
Refs #4259
Signed-off-by: Alexey Artamonov <[email protected]>1 parent 04fb916 commit f994ba4
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
0 commit comments