You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Instance list dereferences missing local heartbeat state on non-master Admin nodes #7697
The instance list loads database rows, looks up each row in the local InstanceCheckService map, then dereferences the result without checking for null. In cluster mode, InstanceCheckService.setup() runs after master election; a follower need not have populated this map. The default cluster forwarding list does not include /instance/**. A follower querying shared database records can therefore hit a null heartbeat entry and fail the whole page. A full two-node reproduction is still required; the null dereference and missing-map case are visible in source.
Other evidence: ShenyuClusterService.doSelectMaster:75-89, ClusterForwardFilter:99-118, and application.yml cluster forwarding defaults. The same mismatch can occur for a row inserted after this JVM loaded its initial snapshot.
Acceptance criteria
Controller regression: a database row absent from the local map does not fail the page.
Define authoritative status behavior: use an explicit persisted/stale fallback or route status reads to the appropriate authority; do not fabricate a fresh ONLINE state.
Test two Admin nodes with shared storage, follower reads, newly persisted rows and master failover.
Preserve namespace filtering and distinguish fresh observations from stored status.
Reviewed source. Baseline: b4e115367fd57adc8aba332d655b1009932ba394. Report based on source inspection; no runtime reproduction was executed during issue preparation.
Activity
imDwAaY commentedon Oct 19, 2026
/assign
fix(admin): keep persisted instance state when local heartbeat is mis…
fix(admin): keep persisted instance state when local heartbeat is mis…