Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

update mysql2 gem - #25649

#25649
Merged
wjordan merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
mysql2_updatecode-dot-org/code-dot-org:mysql2_updateCopy head branch name to clipboard
Dec 17, 2018
Merged

update mysql2 gem#25649
wjordan merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
mysql2_updatecode-dot-org/code-dot-org:mysql2_updateCopy head branch name to clipboard

Conversation

@wjordan

@wjordan wjordan commented Oct 27, 2018

Copy link
Copy Markdown
Contributor

This mysql2 client update from 0.3.21 to 0.5.2 should auto-close db connections properly, eliminating 'aborted client' errors on the MySQL server.

0.3.21 -> 0.5.2
@wjordan

wjordan commented Dec 13, 2018

Copy link
Copy Markdown
Contributor Author

Reproduced the Pegasus test failures locally, it looks like the change triggering the failure was introduced in 0.4.3 or 0.4.4 (0.4.2 works fine, 0.4.3 is not supported in ActiveRecord, 0.4.4 generates test failures).

@wjordan

wjordan commented Dec 15, 2018

Copy link
Copy Markdown
Contributor Author

Still tracking the failure down- it seems that setting self.automatic_close = false in the Mysql2::Client constructor allows the tests to pass, but I think this specific feature we want to have enabled since it is the main reason for upgrading..

Fixes failing Pegasus tests where FakeDashboard session gets closed and
temporary tables are lost.
@wjordan
wjordan requested a review from sureshc December 17, 2018 21:32
@wjordan
wjordan merged commit 4b1658f into staging Dec 17, 2018
@wjordan
wjordan deleted the mysql2_update branch December 17, 2018 23:40
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.