Skip to content

fix: close HTTP change iterator on disconnect - #175

Open
immanuwell wants to merge 1 commit into
cilium:mainfrom
immanuwell:fix/http-change-iterator-cleanup
Open

fix: close HTTP change iterator on disconnect#175
immanuwell wants to merge 1 commit into
cilium:mainfrom
immanuwell:fix/http-change-iterator-cleanup

Conversation

@immanuwell

@immanuwell immanuwell commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

A disconnected /changes/{table} client leaves its deletion tracker registered until a later runtime cleanup.
Deleted objects can stay in the graveyard after the stream is gone

The handler now closes its iterator on exit.
The existing end to end test checks the tracker goes away, no API changes

Repro:

  1. Apply only the test hunk
  2. Run go test ./ -run Test_http_RemoteTable_Changes -count=1
  3. It times out waiting for zero trackers. Apply the fix and it passes

Tested with make test and make test-race

Signed-off-by: immanuwell <pchpr.00@list.ru>
@immanuwell
immanuwell requested a review from a team as a code owner August 18, 2026 17:11
@immanuwell
immanuwell requested review from derailed and removed request for a team August 18, 2026 17:11
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