forked from facebook/mysql-5.6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch back to MySQL-python for CentOS 8.0 and convert to python3 [no…
…n-RocksDB part] Summary: In order to get python tests to work in CentOS 8.0: 1. Default `python` has been removed in CentOS 8.0, so all invocations should explicitly call `python2` or `python3`. 2. Switch MySQL-db to PyMySQL: CentOS 8.0 doesn't have MySQLdb-python package available and some MTR tests need it, so I'm switching to PyMySQL (python2-pymysql). Fortunately PyMySQL has a MySQL-db compatible-mode so switching is relatively easy. I've already added necessary packages in sandcastle so that's why the tests are passing there 3. Catch InternalError for ER_DEADLOCK instead of OperationalError: This is a behavioral difference between PyMySQL and MySQL-db. This appears to be fixed in latest PyMySQL but in the current version in CentOS 8.0 it still has that bug and throws InternalError. I've changed the code to expect both. 4. Reduce contention and iterations in certain test cases as PyMySQL is slower 5. Avoid sending super long queries as it'll get truncated in PyMySQL 6. Update CR.* to CR.CR_* as the prefix for CR codes in PyMySQL is CR_ while MySQLdb has no prefix Porting notes: Should fix individual tests on the next rebase. Differential Revision: D20578783
- Loading branch information
Showing
6 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters