Skip to content

Fix stale observatory status after outbound removal#5876

Open
Alaxay8 wants to merge 1 commit intoXTLS:mainfrom
Alaxay8:fix/observatory-prune-stale-status
Open

Fix stale observatory status after outbound removal#5876
Alaxay8 wants to merge 1 commit intoXTLS:mainfrom
Alaxay8:fix/observatory-prune-stale-status

Conversation

@Alaxay8
Copy link
Copy Markdown

@Alaxay8 Alaxay8 commented Mar 31, 2026

Summary

Prune stale observatory statuses when an outbound is no longer returned by the handler selector.

Problem

observatory.Observer.updateStatus() didn't remove entries for outbounds that had already been removed. As a result, GetObservation() could keep returning stale OutboundStatus items after outbound removal.

Changes

  • prune statuses whose outbound tags are no longer active
  • add tests covering removed outbound pruning
  • preserve status fields for remaining active outbounds
  • clear all statuses when no active outbounds remain

Validation

  • go test ./app/observatory ./app/observatory/burst
  • manual runtime check with HandlerService and ObservatoryService
  • removed an outbound via API
  • confirmed the removed tag no longer appears in GetOutboundStatus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant