Skip to content
Permalink
Browse files

Post-merge fixes: fix rocksdb.tbl_opt_data_index_dir

MariaDB generates both errors and warnings. Warnings are not normally
visible when errors are also produced.
  • Loading branch information...
spetrunia committed Jun 16, 2019
1 parent c399405 commit 6152ecea21b74523b469ac6f6c64f9cdc76b78d4
@@ -1,19 +1,16 @@
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb DATA DIRECTORY = '/foo/bar/data';
ERROR HY000: Got error 196 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB
ERROR HY000: Can't create table `test`.`t1` (errno: 196 "Unknown error 196")
show warnings;
Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 196 "Unknown error 196")
Warning 1296 Got error 196 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB
Error 1005 Can't create table `test`.`t1` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine ROCKSDB
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb INDEX DIRECTORY = '/foo/bar/index';
ERROR HY000: Got error 197 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
ERROR HY000: Can't create table `test`.`t1` (errno: 197 "Unknown error 197")
show warnings;
Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 197 "Unknown error 197")
Warning 1296 Got error 197 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB
Error 1005 Can't create table `test`.`t1` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine ROCKSDB
CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE (id)
(
PARTITION P0 VALUES LESS THAN (1000)
@@ -22,8 +19,12 @@ PARTITION P1 VALUES LESS THAN (2000)
DATA DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE)
);
ERROR HY000: Got error 196 'Specifying DATA DIRECTORY for an individual table is not supported.' from ROCKSDB
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
ERROR HY000: Can't create table `test`.`t1` (errno: 196 "Unknown error 196")
show warnings;
Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 196 "Unknown error 196")
Warning 1296 Got error 196 '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")
CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE (id)
(
PARTITION P0 VALUES LESS THAN (1000)
@@ -32,5 +33,9 @@ PARTITION P1 VALUES LESS THAN (2000)
INDEX DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE)
);
ERROR HY000: Got error 197 'Specifying INDEX DIRECTORY for an individual table is not supported.' from ROCKSDB
ERROR HY000: Can't create table `test`.`t1` (errno: 140 "Wrong create options")
ERROR HY000: Can't create table `test`.`t1` (errno: 197 "Unknown error 197")
show warnings;
Level Code Message
Error 1005 Can't create table `test`.`t1` (errno: 197 "Unknown error 197")
Warning 1296 Got error 197 '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")
@@ -34,6 +34,7 @@ CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=rocksdb PARTITION BY RANGE
DATA DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE)
);
show warnings;

--error ER_CANT_CREATE_TABLE
CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE (id)
@@ -44,3 +45,4 @@ CREATE TABLE t1 (id int not null primary key) ENGINE=rocksdb PARTITION BY RANGE
INDEX DIRECTORY = '/foo/bar/data/',
PARTITION P2 VALUES LESS THAN (MAXVALUE)
);
show warnings;

0 comments on commit 6152ece

Please sign in to comment.
You can’t perform that action at this time.