Skip to content

SQL command checksum returns inconsistent result #110

@mariadb-DanielLee

Description

@mariadb-DanielLee

With a newly made project, I started mysqld with rocksdb as the default engine, then ran a quick Random Query Generator test. I then check the checksum on one of the tables few times, the first return value is different from the rest.

  1. Random Query Generator test command

perl gentest.pl --dsn=dbi:mysql:host=localhost:port=3306:user=root:database=test:mysql_socket=/tmp/mysql.sock --gendata=conf/examples/example.zz --grammar=conf/examples/example.yy --threads=2

  1. mysql.cnf file

[mysqld]
datadir=/home/myrocks/builds/mytest/install.db
socket=/tmp/mysql.sock
gdb
language=./share/english
default-storage-engine=rocksdb
skip-innodb

default-storage-engine=innodb

default-tmp-storage-engine=MyISAM
rocksdb

  1. MySQL client output

mysql> checksum table table0_int_autoinc;
+-------------------------+------------+
| Table | Checksum |
+-------------------------+------------+
| test.table0_int_autoinc | 1585077795 |
+-------------------------+------------+
1 row in set (0.00 sec)

mysql> checksum table table0_int_autoinc;
+-------------------------+-----------+
| Table | Checksum |
+-------------------------+-----------+
| test.table0_int_autoinc | 265692401 |
+-------------------------+-----------+
1 row in set (0.00 sec)

mysql> checksum table table0_int_autoinc;
+-------------------------+-----------+
| Table | Checksum |
+-------------------------+-----------+
| test.table0_int_autoinc | 265692401 |
+-------------------------+-----------+
1 row in set (0.00 sec)

mysql> checksum table table0_int_autoinc;
+-------------------------+-----------+
| Table | Checksum |
+-------------------------+-----------+
| test.table0_int_autoinc | 265692401 |
+-------------------------+-----------+

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions