Skip to content

fix(compaction): enforce the overall wait timeout - #80

Open
efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/compaction-wait-deadline
Open

efegokdemir wants to merge 1 commit into
Basekick-Labs:mainfrom
efegokdemir:efe/compaction-wait-deadline

Conversation

@efegokdemir

Copy link
Copy Markdown
Contributor

compaction trigger --wait-timeout did not interrupt pending status requests or poll delays, so either could overrun the wait budget. Apply an overall context deadline to the waiter and its requests, while preserving shorter per-request timeouts. Adds regression tests for blocked requests, poll delays and JSON command output.

Tested on macOS arm64 with Go 1.27.1: go test -race -count=1 ./..., go vet ./..., go build ./..., gofmt -l . and git diff --check passed. Regression tests reproduced the timeout overruns before the fix. Linux CI and the GoReleaser snapshot have not been run locally.

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