Skip to content

fix: remove 10m operation timeout regression (v0.2.0)#31

Merged
flashadmin merged 1 commit intomainfrom
cloudsql-exporter-remove-operation-timeout-2026042101
Apr 21, 2026
Merged

fix: remove 10m operation timeout regression (v0.2.0)#31
flashadmin merged 1 commit intomainfrom
cloudsql-exporter-remove-operation-timeout-2026042101

Conversation

@flashadmin
Copy link
Copy Markdown
Owner

Summary

  • v0.2.0 activated a hardcoded 10-minute client-side deadline in WaitForSQLOperation by wrapping the parent context with context.WithTimeout. The same timeout parameter existed in v0.1.x but was dead code — so polling effectively ran as long as needed. v0.2.0 flipped it into an enforced deadline.
  • Large database exports can legitimately run many hours — the 10m cap causes false timeout waiting for operation ... context deadline exceeded failures.
  • This PR removes the in-app deadline, drops the now-unused timeout parameter, and leaves polling bounded by the parent context (so callers can still impose a deadline via ctx, and SIGTERM still propagates).

Test plan

  • go build ./... passes
  • go vet ./... passes

…2.0)

v0.2.0 activated a hardcoded 10-minute client-side deadline in
WaitForSQLOperation via context.WithTimeout. The `timeout` parameter
existed in v0.1.x but was dead code; wrapping the context with it
turned operation polling into a ticking bomb for any export that
exceeds 10m.

Large CloudSQL exports routinely run hours. Remove the in-app
deadline and bound polling only by the parent context, so callers
can still impose their own deadline (and SIGTERM still propagates).
@flashadmin flashadmin marked this pull request as ready for review April 21, 2026 10:22
@flashadmin flashadmin merged commit ee9e61a into main Apr 21, 2026
1 check passed
@flashadmin flashadmin deleted the cloudsql-exporter-remove-operation-timeout-2026042101 branch April 21, 2026 10:23
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