diff options
author | unknown <magnus@neptunus.(none)> | 2004-05-26 14:22:49 +0200 |
---|---|---|
committer | unknown <magnus@neptunus.(none)> | 2004-05-26 14:22:49 +0200 |
commit | 537ba1e125e68e603fd23b710aeb8fb81bbc3480 (patch) | |
tree | cf22ce5a8039f767acc615d7b524596cba5a9655 /mysql-test | |
parent | 5a9954296260a3687220e059b5c2ca460109cf1f (diff) | |
download | mariadb-git-537ba1e125e68e603fd23b710aeb8fb81bbc3480.tar.gz |
Fix after running on a 4-node system.
mysql-test/r/ndb_autodiscover.result:
Removed one test that needs manual interaction
Added order by in some places
mysql-test/t/ndb_autodiscover.test:
Removed one test that needs manual interaction
Added order by in some places
sql/ha_ndbcluster.cc:
Using HA_WRONG_ASCII_ORDER to activate filesort on a not "sorted" ordered index.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/ndb_autodiscover.result | 35 | ||||
-rw-r--r-- | mysql-test/t/ndb_autodiscover.test | 92 |
2 files changed, 28 insertions, 99 deletions
diff --git a/mysql-test/r/ndb_autodiscover.result b/mysql-test/r/ndb_autodiscover.result index ea2c7464f5d..32d9fd0d80f 100644 --- a/mysql-test/r/ndb_autodiscover.result +++ b/mysql-test/r/ndb_autodiscover.result @@ -22,11 +22,11 @@ show status like 'handler_discover%'; Variable_name Value Handler_discover 2 flush tables; -select * from t1; +select * from t1 order by id; id name +1 Autodiscover 2 Auto 2 3 Discover 3 -1 Autodiscover show status like 'handler_discover%'; Variable_name Value Handler_discover 3 @@ -119,29 +119,6 @@ Variable_name Value Handler_discover 2 drop table t3; flush status; -create table t4( -id int not null primary key, -name char(27) -) engine=ndb; -insert into t4 values (1, "Automatic"); -select * from t4; -id name -1 Automatic -select * from t4; -ERROR HY000: Got error 284 'Table not defined in transaction coordinator' from ndbcluster -flush table t4; -select * from t4; -ERROR HY000: Can't open file: 't4' (errno: 709) -show status like 'handler_discover%'; -Variable_name Value -Handler_discover 0 -drop table t4; -flush tables; -show tables; -Tables_in_test -select * from t4; -ERROR 42S02: Table 'test.t4' doesn't exist -flush status; show status like 'handler_discover%'; Variable_name Value Handler_discover 0 @@ -157,10 +134,6 @@ ALTER TABLE t5 ADD COLUMN adress char(255) FIRST; select * from t5; adress id name NULL 1 Magnus -flush table t5; -select * from t5; -adress id name -NULL 1 Magnus insert into t5 values ("Adress for record 2", 2, "Carl-Gustav"), ("Adress for record 3", 3, "Karl-Emil"); @@ -190,10 +163,6 @@ ALTER TABLE t6 ADD COLUMN adress char(255) FIRST; select * from t6; adress id name NULL 1 Magnus -flush table t6; -select * from t6; -adress id name -NULL 1 Magnus insert into t6 values ("Adress for record 2", 2, "Carl-Gustav"), ("Adress for record 3", 3, "Karl-Emil"); diff --git a/mysql-test/t/ndb_autodiscover.test b/mysql-test/t/ndb_autodiscover.test index dedcd3f257e..890f36d7270 100644 --- a/mysql-test/t/ndb_autodiscover.test +++ b/mysql-test/t/ndb_autodiscover.test @@ -39,7 +39,7 @@ insert into t1 values (3, "Discover 3"); show status like 'handler_discover%'; flush tables; system rm var/master-data/test/t1.frm ; -select * from t1; +select * from t1 order by id; show status like 'handler_discover%'; # @@ -150,32 +150,33 @@ drop table t3; # but not in NDB can be deleted from disk. # -flush status; - -create table t4( - id int not null primary key, - name char(27) -) engine=ndb; -insert into t4 values (1, "Automatic"); -select * from t4; - +# Manual test +#flush status; +# +#create table t4( +# id int not null primary key, +# name char(27) +#) engine=ndb; +#insert into t4 values (1, "Automatic"); +#select * from t4; +# # Remove the table from NDB #system drop_tab -c "$NDB_CONNECTSTRING2" -d test t4 > /dev/null ; -system drop_tab -c "host=localhost:2200;nodeid=5" -d test t4 > /dev/null ; - ---error 1296 -select * from t4; - -flush table t4; ---error 1016 -select * from t4; - -show status like 'handler_discover%'; -drop table t4; -flush tables; -show tables; ---error 1146 -select * from t4; +#system drop_tab -c "host=localhost:2200;nodeid=5" -d test t4 > /dev/null ; +# +#--error 1296 +#select * from t4; +# +#flush table t4; +#--error 1016 +#select * from t4; +# +#show status like 'handler_discover%'; +#drop table t4; +#flush tables; +#show tables; +#--error 1146 +#select * from t4; ######################################################### @@ -195,30 +196,10 @@ create table t5( insert into t5 values (1, "Magnus"); select * from t5; -# Ugly trick to change version of the table in NDB -# Requires nodeid=5 to be defined and not used -# Until ALTER TABLE works -#system copy_tab -c "$NDB_CONNECTSTRING2" -d test t1 t1_copy > /dev/null ; -#system drop_tab -c "$NDB_CONNECTSTRING2" -d test t1 > /dev/null ; -#system copy_tab -c "$NDB_CONNECTSTRING2" -d test t1_copy t1 > /dev/null ; -#system drop_tab -c "$NDB_CONNECTSTRING2" -d test t1_copy > /dev/null ; - ALTER TABLE t5 ADD COLUMN adress char(255) FIRST; -# The follwing select will exit with -# 1030 Got error 241 from storage engine -# This means it has detected that the schema version of the meta data -# cached locally in NdbApi is not the same as in the Dictionary of NDB. -# The user has to resolve this problem by performing a FLUSH TABLE tabname -#MASV--error 1030 select * from t5; -# The application/user is required to call FLUSH TABLE when error 241 is -# returned. This is a workaround and will in the future be done -# automatically by the server -flush table t5; - -select * from t5; insert into t5 values ("Adress for record 2", 2, "Carl-Gustav"), ("Adress for record 3", 3, "Karl-Emil"); @@ -246,29 +227,8 @@ create table t6( insert into t6 values (1, "Magnus"); select * from t6; -# Ugly trick to change version of the table in NDB -# Requires nodeid=5 to be defined and not used -# Until ALTER TABLE works -#system copy_tab -c "$NDB_CONNECTSTRING2" -d test t6 t6_copy > /dev/null ; -#system drop_tab -c "$NDB_CONNECTSTRING2" -d test t6 > /dev/null ; -#system copy_tab -c "$NDB_CONNECTSTRING2" -d test t6_copy t6 > /dev/null ; -#system drop_tab -c "$NDB_CONNECTSTRING2" -d test t6_copy > /dev/null ; - ALTER TABLE t6 ADD COLUMN adress char(255) FIRST; -# The follwing select will exit with -# 1030 Got error 241 from storage engine -# This means it has detected that the schema version of the meta data -# cached locally in NdbApi is not the same as in the Dictionary of NDB. -# The user has to resolve this problem by performing a FLUSH TABLE tabname -#MASV--error 1030 -select * from t6; - -# The application/user is required to call FLUSH TABLE when error 241 is -# returned. This is a workaround and will in the future be done -# automatically by the server -flush table t6; - select * from t6; insert into t6 values ("Adress for record 2", 2, "Carl-Gustav"), |