Skip to content

Fix Prepare hang on array metadata cancellation. - #60

Open
MrTeeett wants to merge 1 commit into
mainfrom
43-prepare-can-hang-when-array-metadata-loading-is-canceled
Open

MrTeeett wants to merge 1 commit into
mainfrom
43-prepare-can-hang-when-array-metadata-loading-is-canceled

Conversation

@MrTeeett

Copy link
Copy Markdown
Contributor

Fixes #43

Keep the request watcher active while finishing the deferred Execute
and sending both DSQL_drop commands. Use one five-second cleanup window
from cancellation through rollback of the owned transaction. Close the
transport if cleanup stalls past that limit.

After a background read times out without receiving any bytes, use the
current socket deadline for the next read.

Keep the request watcher active while finishing the deferred Execute
and dropping both statements. Share one five-second cleanup limit
between those operations and rollback of the owned transaction.
Close the transport if that limit expires.

Use the current socket deadline for the next read when a background
read times out without receiving any bytes.
@MrTeeett MrTeeett added this to the v0.8.0 milestone Nov 24, 2026
@MrTeeett
MrTeeett requested a review from RozmiDan November 24, 2026 08:59
@MrTeeett MrTeeett self-assigned this Nov 24, 2026
@MrTeeett MrTeeett added the bug Something isn't working label Nov 24, 2026
@MrTeeett MrTeeett linked an issue Nov 24, 2026 that may be closed by this pull request
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Go

Go / code-coverage/gotest

main 3525ff6 43-prepare-can-hang-... 17d4995 +/-
79% 79% 0%
View coverage of the 10 most impacted files.
File main 3525ff6 43-prepare-can-hang-... 17d4995 +/-
fbtype/null.go 92% 89% -3%
fbconn/errors.go 97% 96% -1%
fbtype/array.go 83% 83% 0%
fbtype/dec16.go 74% 74% 0%
fbconn/batch.go 85% 85% 0%
fbconn/internal...der/bgreader.go 97% 97% 0%
fbtype/timetz.go 76% 77% +1%
fbconn/fbconn.go 78% 80% +2%
fbconn/statement.go 72% 74% +2%
fbconn/transaction.go 82% 87% +5%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@MrTeeett MrTeeett modified the milestones: v0.8.0, v0.9.0 Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prepare can hang when array metadata loading is canceled

1 participant