Bug #111658 | Session with autocommit=0 keeps old view of tables | ||
---|---|---|---|
Submitted: | 4 Jul 2023 12:54 | Modified: | 4 Jul 2023 14:19 |
Reporter: | Iwo P | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Jul 2023 12:54]
Iwo P
[4 Jul 2023 13:20]
MySQL Verification Team
Hi Mr. P, Thank you for your bug report. However, we are not able to repeat what you are reporting with our 8.0.33. We started both sessions with autocommit being disabled, as it is default. We could not repeat what you are reporting as both sessions did not show any table; Then we start both sessions with autocommit enabled and again, we got the same result. SHOW TABLES again returned an empty set. Can't repeat.
[4 Jul 2023 14:08]
Iwo P
Test report
Attachment: bug111658.test (application/octet-stream, text), 245 bytes.
[4 Jul 2023 14:09]
Iwo P
I've attached MTR test case. Sample run: ``` $ perl mysql-test-run.pl t/bug111658.test --nocheck-testcases Logging: mysql-test-run.pl t/bug111658.test --nocheck-testcases MySQL Version 8.0.33 Checking supported features Using 'all' suites Collecting tests Checking leftover processes Removing old var directory Creating var directory '/home/iwo/opt/oracle_mysql/mysql-8.0.33-linux-glibc2.28-x86_64/mysql-test/var' Installing system database Using parallel: 1 ============================================================================== TEST NAME RESULT TIME (ms) COMMENT ------------------------------------------------------------------------------ CREATE TABLE A ( id int ); SET autocommit = 0; SHOW TABLES; Tables_in_test A # Connection con1 # Sending: DROP TABLE A; SHOW TABLES; Tables_in_test # Connection default SHOW TABLES; Tables_in_test A ```
[4 Jul 2023 14:19]
MySQL Verification Team
Hi, Thank you for your bug report. We were able to repeat the test case. One session is in auto-commit mode , while the other is not. Verified as reported.