Skip to content

fix: Validate DB connection with an explicit timeout, rather than the…#510

Merged
disq merged 1 commit into
cloudquery:mainfrom
shimonp21:timeout_validataion
Mar 2, 2022
Merged

fix: Validate DB connection with an explicit timeout, rather than the…#510
disq merged 1 commit into
cloudquery:mainfrom
shimonp21:timeout_validataion

Conversation

@shimonp21
Copy link
Copy Markdown
Contributor

… default timeout

  • The default timeout is many minutes, way too long to give the user feedback about failed db connection.
  • Note that cq-provider-sdk/database/postgres uses lazy-connect, so it won't return an error in case of failed DB connection.

@shimonp21 shimonp21 changed the title Fix: Validate DB connection with an explicit timeout, rather than the… fix: Validate DB connection with an explicit timeout, rather than the… Mar 2, 2022
@shimonp21 shimonp21 requested a review from disq March 2, 2022 07:56
@github-actions github-actions Bot added the fix label Mar 2, 2022
Comment thread pkg/client/database/postgres/executor.go Outdated
Comment thread pkg/client/database/postgres/executor.go Outdated
Comment thread pkg/client/database/postgres/executor.go Outdated
@shimonp21 shimonp21 requested a review from disq March 2, 2022 12:03
Comment thread pkg/client/database/postgres/executor.go Outdated
… default timeout

- The default timeout is many minutes, way too long to give the user feedback about failed db connection.
- Note that cq-provider-sdk/database/postgres uses lazy-connect, so it won't return an error in case of failed DB connection.
@disq disq merged commit f5b0d04 into cloudquery:main Mar 2, 2022
@shimonp21 shimonp21 deleted the timeout_validataion branch March 2, 2022 13:18
TinLe pushed a commit to TinLe/cloudquery that referenced this pull request Mar 22, 2022
* upstream/main: (21 commits)
  feat: Ignore ignored diags unless -v is specified (cloudquery#545)
  chore: Sync form .github (cloudquery#527)
  chore: Clean up db version checks (cloudquery#542)
  fix: Validate Timescale Version (cloudquery#540)
  feat: Support timeouts in fetch (cloudquery#537)
  fix: Warn on providers with no resources requested (cloudquery#528)
  fix: Fixed local policy run (cloudquery#535)
  fix: Make Date a static value (cloudquery#534)
  fix: Downgrade provider (cloudquery#531)
  feat: Store cq_fetch_id in meta (cloudquery#523)
  fix: Foreign Keys in Snapshots (cloudquery#525)
  feat: Add file() func to config parser (cloudquery#522)
  feat: Drift: Add @getbool modifier (cloudquery#515)
  fix: Diag: Don't report errors we don't care about (cloudquery#521)
  fix: Handle if Path doesn't exist (cloudquery#518)
  fix: Keep binary reference consistent (cloudquery#516)
  fix: Validate DB connection with an explicit timeout, rather than the… (cloudquery#510)
  fix: Missing views in history mode (cloudquery#508)
  fix: Init command cleanup (cloudquery#502)
  fix: Upgrade/downgrade providers cleanup (cloudquery#498)
  ...
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.

2 participants