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

server (all components that use DB): don't use MYSQL_OPT_RECONNECT if deprecated #5342

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

davidpanderson
Copy link
Contributor

Starting with 8.0.34, the MySQL reconnection option is deprecated, and using it produces a warning message.
So don't use it with MySQL 8.0.34 and later.

Note: this means that if the MySQL server dies,
long-running programs like the transitioner will stop working, and you'll have to stop/start the project.
If this proves to be a problem, we could add our own reconnect logic.

Fixes #5341

… deprecated

Starting with 8.0.34, the MySQL reconnection option is deprecated,
and using it produces a warning message.
So don't use it with MySQL 8.0.34 and later.

Note: this means that if the MySQL server dies,
long-running programs like the transitioner will stop working,
and you'll have to stop/start the project.
If this proves to be a problem, we could add our own reconnect logic.
@codecov
Copy link

codecov bot commented Aug 21, 2023

Codecov Report

Merging #5342 (a42eada) into master (b8f67dc) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5342      +/-   ##
============================================
- Coverage     10.87%   10.87%   -0.01%     
  Complexity     1068     1068              
============================================
  Files           279      279              
  Lines         36058    36059       +1     
  Branches       8334     8335       +1     
============================================
  Hits           3920     3920              
- Misses        31744    31745       +1     
  Partials        394      394              
Files Changed Coverage Δ
db/db_base.cpp 0.76% <0.00%> (-0.01%) ⬇️

@AenBleidd AenBleidd merged commit 3817542 into master Aug 21, 2023
47 of 48 checks passed
@AenBleidd AenBleidd deleted the dpa_reconnect branch August 21, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

MySQL 8.0.34 and 8.1.0 's libmysqlclients deprecates MYSQL_OPT_RECONNECT
2 participants