Commit c81677be authored by Aleksey Midenkov's avatar Aleksey Midenkov

rocksdb.tbl_opt_data_index_dir test fix

Handler error codes in storage engine may change as they depend on
volatile HA_ERR_LAST.
parent 585cb18e
DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb DATA DIRECTORY = '/foo/bar/data'; CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb DATA DIRECTORY = '/foo/bar/data';
ERROR HY000: Can't create table `test`.`t1` (errno: 198 "Unknown error 198") ERROR HY000: Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
show warnings; show warnings;
Level Code Message Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 198 "Unknown error 198") Error 1005 Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
Warning 1296 Got error 198 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB Warning 1296 Got error XXX 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb INDEX DIRECTORY = '/foo/bar/index'; CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb INDEX DIRECTORY = '/foo/bar/index';
ERROR HY000: Can't create table `test`.`t1` (errno: 199 "Unknown error 199") ERROR HY000: Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
show warnings; show warnings;
Level Code Message Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 199 "Unknown error 199") Error 1005 Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
Warning 1296 Got error 199 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB Warning 1296 Got error XXX 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE (id) CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE (id)
( (
PARTITION P0 VALUES LESS THAN (1000) PARTITION P0 VALUES LESS THAN (1000)
...@@ -19,11 +19,11 @@ PARTITION P1 VALUES LESS THAN (2000) ...@@ -19,11 +19,11 @@ PARTITION P1 VALUES LESS THAN (2000)
DATA DIRECTORY = '/foo/bar/data/', DATA DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE) PARTITION P2 VALUES LESS THAN (MAXVALUE)
); );
ERROR HY000: Can't create table `test`.`t1` (errno: 198 "Unknown error 198") ERROR HY000: Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
show warnings; show warnings;
Level Code Message Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 198 "Unknown error 198") Error 1005 Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
Warning 1296 Got error 198 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB Warning 1296 Got error XXX 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB
Error 6 Error on delete of './test/t1.par' (Errcode: 2 "No such file or directory") Error 6 Error on delete of './test/t1.par' (Errcode: 2 "No such file or directory")
CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE (id) CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE (id)
( (
...@@ -33,9 +33,9 @@ PARTITION P1 VALUES LESS THAN (2000) ...@@ -33,9 +33,9 @@ PARTITION P1 VALUES LESS THAN (2000)
INDEX DIRECTORY = '/foo/bar/data/', INDEX DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE) PARTITION P2 VALUES LESS THAN (MAXVALUE)
); );
ERROR HY000: Can't create table `test`.`t1` (errno: 199 "Unknown error 199") ERROR HY000: Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
show warnings; show warnings;
Level Code Message Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 199 "Unknown error 199") Error 1005 Can't create table `test`.`t1` (errno: XXX "Unknown error XXX")
Warning 1296 Got error 199 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB Warning 1296 Got error XXX 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB
Error 6 Error on delete of './test/t1.par' (Errcode: 2 "No such file or directory") Error 6 Error on delete of './test/t1.par' (Errcode: 2 "No such file or directory")
...@@ -17,23 +17,23 @@ DROP TABLE IF EXISTS t1; ...@@ -17,23 +17,23 @@ DROP TABLE IF EXISTS t1;
# opposed to "Unknown error nn" on Linux/etc. # opposed to "Unknown error nn" on Linux/etc.
# Replacing 'error:' with 'error' below to make the output uniform. # Replacing 'error:' with 'error' below to make the output uniform.
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
--error ER_CANT_CREATE_TABLE --error ER_CANT_CREATE_TABLE
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb DATA DIRECTORY = '/foo/bar/data'; CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb DATA DIRECTORY = '/foo/bar/data';
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
show warnings; show warnings;
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
--error ER_CANT_CREATE_TABLE --error ER_CANT_CREATE_TABLE
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb INDEX DIRECTORY = '/foo/bar/index'; CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb INDEX DIRECTORY = '/foo/bar/index';
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
show warnings; show warnings;
# #
# Verify that we'll get the same error codes when using the partitions. # Verify that we'll get the same error codes when using the partitions.
# #
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
--error ER_CANT_CREATE_TABLE --error ER_CANT_CREATE_TABLE
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE (id) CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE (id)
( (
...@@ -43,10 +43,10 @@ CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE ...@@ -43,10 +43,10 @@ CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE
DATA DIRECTORY = '/foo/bar/data/', DATA DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE) PARTITION P2 VALUES LESS THAN (MAXVALUE)
); );
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
show warnings; show warnings;
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
--error ER_CANT_CREATE_TABLE --error ER_CANT_CREATE_TABLE
CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE (id) CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE (id)
( (
...@@ -56,5 +56,5 @@ CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE ...@@ -56,5 +56,5 @@ CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE
INDEX DIRECTORY = '/foo/bar/data/', INDEX DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE) PARTITION P2 VALUES LESS THAN (MAXVALUE)
); );
--replace_result error: error --replace_regex /err(no:|or):? \d+/err\1 XXX/
show warnings; show warnings;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment