Skip to content

fix(table): close stale scan plan IO - #1683

Draft
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/scan-planio-lifecycle
Draft

fix(table): close stale scan plan IO#1683
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/scan-planio-lifecycle

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Close plan-scoped IO when scan planning finishes or a plan is replaced.

Why

Remote replanning and plan-loading errors could leave the previous plan IO open, which leaks resources during retries and failed reads.

What changed

Close local plan IO after planning, close the previous remote plan before replacing it, and close plan IO when ReadTasks fails to load or initialize a plan.

Tests

  • go test ./table -run TestScanPlanningRemote -count=1
  • go test ./table -run TestReadTasksClosesPlanIOWhenLoadFails -count=1

@fallintoplace fallintoplace changed the title Close stale scan plan IO fix(table): close stale scan plan IO Aug 6, 2026
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