Skip to content

Commit bb6ed2b

Browse files
committed
PS-9293, PS-9328: Fix innodb.parallel_read_kill test failures.
After Upstream's fix for bug#35952353 "SELECT COUNT(*) degraded performance on 8.0 compared to 5.7" (mysql/mysql-server@ffad6cf) MySQL stopped using parallel read for COUNT(*) evaluation when secondary index scan is used. As result innodb.parallel_read_kill test started to fail, as it employed COUNT(*) that used secondary index scan to test InnoDB parallel read killability. The parallel read code is simply no longer invoked causing DEBUG_SYNC time out. This patch fixes the failure by forcing the test to use COUNT(*) that uses primary key scan, which is still processed using parallel read, instead.
1 parent 646a7cf commit bb6ed2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mysql-test/suite/innodb/r/parallel_read_kill.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ END|
1212
CREATE TABLE t1(
1313
f1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
1414
f2 INT NOT NULL,
15-
f3 INT NOT NULL,
16-
KEY(f2, f3))
15+
f3 INT NOT NULL
16+
)
1717
ENGINE=INNODB;
1818
BEGIN;
1919
# Create uncommitted rows

mysql-test/suite/innodb/t/parallel_read_kill.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ DELIMITER ;|
1919
CREATE TABLE t1(
2020
f1 INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
2121
f2 INT NOT NULL,
22-
f3 INT NOT NULL,
23-
KEY(f2, f3))
22+
f3 INT NOT NULL
23+
)
2424
ENGINE=INNODB;
2525

2626
BEGIN;

0 commit comments

Comments
 (0)