The Wayback Machine - https://web.archive.org/web/20210202124032/https://github.com/go-sql-driver/mysql/pull/1052
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conncheck: allow to disable via config #1052

Merged
merged 2 commits into from Jan 7, 2020
Merged

Conversation

@julienschmidt
Copy link
Member

@julienschmidt julienschmidt commented Jan 6, 2020

Description

Add an option to disable the conncheck introduced in #934 via config / DSN. The default is to perform this liveliness check of connections on supported platforms, if not explicitly disabled.

Fixes #996

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file
@julienschmidt julienschmidt added this to the v1.5.0 milestone Jan 6, 2020
@julienschmidt julienschmidt changed the title chonncheck: allow to disable via config conncheck: allow to disable via config Jan 6, 2020
@julienschmidt julienschmidt force-pushed the connncheck_optional branch from 2f61272 to f7268f2 Jan 6, 2020
@julienschmidt julienschmidt mentioned this pull request Jan 6, 2020
5 of 5 tasks complete
@julienschmidt julienschmidt requested a review from methane Jan 6, 2020
@julienschmidt julienschmidt force-pushed the connncheck_optional branch from 75824b8 to d23e1ee Jan 6, 2020
@methane
Copy link
Member

@methane methane commented Jan 7, 2020

I am not good at English, but I feel "liveness" is commonly used in context of healthcheck.
https://wikidiff.com/liveliness/liveness

@julienschmidt
Copy link
Member Author

@julienschmidt julienschmidt commented Jan 7, 2020

Both seems to be used. E.g. Kubernetes uses "Liveness", in Red Hat Enterprise Virtualization "Liveliness" is used.
But "liveness" seems to be more fitting and was also used in #934. I'll change it.

@julienschmidt julienschmidt force-pushed the connncheck_optional branch from d23e1ee to fc27b32 Jan 7, 2020
@julienschmidt
Copy link
Member Author

@julienschmidt julienschmidt commented Jan 7, 2020

@methane PTAL

@methane
methane approved these changes Jan 7, 2020
@vmg
vmg approved these changes Jan 7, 2020
@julienschmidt julienschmidt force-pushed the connncheck_optional branch from fc27b32 to 449e060 Jan 7, 2020
@julienschmidt
Copy link
Member Author

@julienschmidt julienschmidt commented Jan 7, 2020

I just pushed another minimal change, where I just fixed two occurrences of the word liveness in the description of the DSN param to be lower-cased.

@julienschmidt julienschmidt merged commit 6844171 into master Jan 7, 2020
4 checks passed
4 checks passed
WIP Ready for review
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.8%) to 81.401%
Details
@julienschmidt julienschmidt deleted the connncheck_optional branch Jan 7, 2020
tz70s added a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* conncheck: allow to disable via config

* dsn: refactor writing of params in FormatDSN
tz70s added a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* conncheck: allow to disable via config

* dsn: refactor writing of params in FormatDSN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants