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

Mysql-test runner gives error for Isolation level read committed but works in TIDB #53

Open
Alkaagr81 opened this issue Feb 9, 2022 · 0 comments

Comments

@Alkaagr81
Copy link

SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
START TRANSACTION;

In Mysql test runner error

sachinagrawal@Sachins-MacBook-Pro mysql_test % ./run-tests.sh -s ~/pingcap/Github/tidb/bin/tidb-server -r crashing
skip building tidb-server, using existing binary: /Users/sachinagrawal/pingcap/Github/tidb/bin/tidb-server
building mysql-test binary: ./mysql_test
build mysql_test successfully
start tidb-server, log file: ./mysql-test.out
tidb-server(PID: 89440) started
record result for case: "crashing"
INFO[0000] recording tests: [crashing]                  
WARN[0000] Create new db&{0 0xc000010010 0 {0 0} [0xc0000aa000] map[] 0 1 0xc00009c000 false map[0xc0000aa000:map[0xc0000aa000:true]] map[] 0 0 0 0 <nil> 0 0 0 0 0x109bda0} 
FATA[0000] run test [crashing] err: sql:SET TRANSACTION ISOLATION LEVEL READ COMMITTED;: run "SET TRANSACTION ISOLATION LEVEL READ COMMITTED;" at line 1 err Error 1568: Transaction characteristics can't be changed while a transaction is in progress 
tidb-server(PID: 89440) stopped

In TIDB

mysql> SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
Query OK, 0 rows affected (0.00 sec)

mysql> START TRANSACTION;
Query OK, 0 rows affected (0.00 sec)
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

No branches or pull requests

1 participant