Commit graph

58 commits

Author SHA1 Message Date
Sergei Petrunia
ebbe59fa33 MariaRocks port: fix rocksdb.bloomfilter3 test
In MySQL 5.6, QUICK_SELECT_DESC calls handler->set_end_range() to
inform the storage engine about the bounds of the range being scanned.

MariaDB doesn't have that (handler::set_end_range call was back-ported
but it is not called from QUICK_SELECT_DESC).
Instead, it got prepare_*scan() methods from TokuDB.

Implement these methods so that MyRocks has information about the range
end.
2017-01-07 16:03:47 +00:00
Sergei Petrunia
69d5ee58c6 MariaRocks port: Temporarily disable tests related to Gap Lock detector (MDEV-11735) 2017-01-06 23:36:23 +03:00
Sergei Petrunia
e3df50c4b9 MariaRocks port: fix rocksdb.table_stats
- Need to manually enable userstat
- MariaDB has a lot fewer columns in table_statistics table.
2017-01-03 00:21:04 +03:00
Sergei Petrunia
31b2237c68 Merge branch '10.2' of github.com:MariaDB/server into 10.2-mariarocks
and a few trivial test result updates
2017-01-02 21:09:31 +00:00
Sergei Petrunia
a597e0e164 MariaRocks port: fix tests
- rocksdb.tmpdir works (however @@rocksdb_tmpdir has no effect yet!)
- trx_info_rpl is only run in RBR mode
- type_char_indexes_collation now works
  = take into account that characters with the same weight can have
    any order after sorting (and they do in MariaDB)
  = MariaDB doesn't use index-only for extended keys that have partially-
    covered columns.
2017-01-02 22:50:35 +03:00
Sergei Petrunia
3ecd9e0bfc Post-merge fixes for rocksdb.add_index_inplace_crash 2017-01-02 00:15:45 +00:00
Sergei Petrunia
7c4ebec82d MariaRocks: trivial post-merge test fixes 2017-01-02 00:06:26 +00:00
Sergei Petrunia
d8288b306c Merge remote-tracking branch 'mergetrees/merge-myrocks' into 10.2-mariarocks 2017-01-01 23:33:18 +00:00
Sergei Petrunia
cfb59f3196 Copy of
commit f6ed777697db4ad7aee1e98c53243dced2b5891c
Author: Chenyu Yan <seayan@outlook.com>
Date:   Thu Dec 29 16:10:25 2016 -0800

    Fix BIG_TIMEOUT constant

    Summary: Update the constant to reflect what the comments indicates.

    Reviewed By: gunnarku

    Differential Revision: D4374476

    fbshipit-source-id: dd7f484
2016-12-31 23:30:09 +03:00
Sergei Petrunia
d1af31b3c2 MariaRocks port: Make rocksdb_sys_vars suite pass
- Fix include paths, add suite.opt
- Add a test for @@rocksdb_supported_compression_types
Now all tests pass, except rocksdb_sysvars.rocksdb_rpl_skip_tx_api_basic
2016-12-31 21:31:50 +03:00
Sergei Petrunia
9ca608028f MariaRocks port: make rocksdb.rocksdb_qcache test pass 2016-12-27 00:13:32 +00:00
Sergei Petrunia
8f2d58b26b MariaRocks port: run rocksdb.rpl_row_stats with binlog_format=row only
The test still fails but at least we do not try to run it with
wrong binlog_format.
2016-12-26 22:31:46 +03:00
Sergei Petrunia
9f7dc2bbf5 MariaRocks port: make rocksdb.rpl_savepoint pass
Run it only with binlog_format=row, update test result
2016-12-15 20:56:27 +03:00
Sergei Petrunia
24224839d8 MariaRocks port: make rocksdb.rpl_statement_not_found work 2016-12-15 19:25:32 +03:00
Sergei Petrunia
0d3d2a5747 MariaRocks port: mark rocksdb.rpl_statement to be run only in statement mode. 2016-12-15 16:11:22 +03:00
Sergei Petrunia
73c702eae5 MariaRocks port: fix rocksdb.rpl_row_rocksdb test
The 'combinations' system in MTR ignores settings from $testname.cnf,
and tries to run RBR test with binlog_format=mixed.

Fixed by using "source include/have_binlog_format_row.inc" which tells
MTR to only run the test with binlog_format=ROW.
The test still needs its $testname.cnf to include suite/rpl/my.cnf. This
is necessary to setup replication

(Using "source include/master-slave.inc" will have MTR set up replication
for the test, but only as long as the testsuite doesn't have its own
suite/rocksdb/my.cnf.  We do have that file (and it doesn't set up
replication), so we need to have $testname.cnf to setup replication).
2016-12-15 15:34:56 +03:00
Sergei Petrunia
8e2cfde953 MariaRocks port: fix rocksdb.collation, rocksdb.collation_exception
- port Regex_list_handler from facebook/mysql-5.6/sql/handler.cc
  put it into a separate file in storage/rocksdb directory

- Adjust the build process so that the main library is build with
  Regex_list_handler (which has dependencies on the server),
  while RocksDB tools are built without it.

- Un-comment @@rdb_collation_exceptions handling in ha_rocksdb.cc
- Also adjust rocksdb_set_collation_exception_list() to free the
  old variable value and alloc the new one.
2016-12-04 23:55:54 +03:00
Sergei Petrunia
34b66fcc98 MariaRocks port: get rocksdb.locking_issues test to work
Also update test results (MariaDB's dialect changes)
2016-12-04 14:27:10 +00:00
Sergei Petrunia
7b708ee3ed MDEV-11329: MariaRocks: rocksdb.add_index_inplace fails
- Make ha_rocksdb::check_if_supported_inplace_alter() take into
  account the Alter_inplace_info::ALTER_PARTITIONED flag

- Adjust the testcase to work in MariaDB
2016-12-04 09:28:51 +00:00
Sergei Petrunia
05a593dfc9 MariaRocks: temporary disable read-free replication
Making read-free replication to work is filed as MDEV-10976
2016-12-04 08:28:34 +00:00
Sergei Petrunia
81c05c5931 MariaRocks port: disable rocksdb.select_for_update_skip_locked_nowait 2016-12-03 20:56:40 +00:00
Sergei Petrunia
9a49210ec3 MariaRocks port: disable rocksdb.slwo_query_log test (MDEV-11480) 2016-12-03 20:37:45 +00:00
Sergei Petrunia
aecc95a15c MariaRocks port: fix rocksdb.autoinc_vars 2016-12-03 18:29:36 +00:00
Sergei Petrunia
044ad5d3d9 MariaRocks port: make rocksdb.show_table_status test pass
The test relies on having userstat enabled, which is not ON
by default in MariaDB.
2016-12-03 18:17:21 +00:00
Sergei Petrunia
4f90605a3d MariaRocks port: make datetime-aware tests work in any timezone
This fixes
- rocksdb.col_opt_not_null
- rocksdb.col_opt_null
- rocksdb.type_date_time
2016-12-03 14:56:38 +00:00
Sergei Petrunia
00e3869a66 MariaRocks port: get rocksdb.checksum_table to work
MariaDB has a different checksumming algorithm. Old one
can be used by setting @@old=1
2016-12-03 14:00:23 +00:00
Sergei Petrunia
8018bb737c MariaRocks port: use correct MTR command separators
Failure to do so caused the command not to be run, and test failed
2016-12-03 12:52:34 +00:00
Sergei Petrunia
b504c56bff MariaRocks: test result MariaDB-fication
The test stopped giving deadlock errors after the previous cset.
2016-12-03 12:46:05 +00:00
Sergei Petrunia
e6afa256e7 MariaRocks port: Make ha_rocksdb::index_flags() return HA_CLUSTERED_INDEX for PK
Failure to do so caused a failure in rocksdb.rocksdb test.
When test_if_cheaper_ordering computes is_covering= ...,
- MySQL calls table->file->primary_key_is_clustered()
- MariaDB calls (table->file->index_flags(nr, 0, 1) &
                          HA_CLUSTERED_INDEX)

The first produces true, the second used to produce false.
2016-12-03 12:42:30 +00:00
Sergei Petrunia
0d5257215a MariaRocks port: update test results 2016-12-03 06:21:31 +00:00
Sergei Petrunia
ec58a1cca8 MariaRocks port: update test results
MariaDB produces warnings when INSERT IGNORE hits a duplicate (this
was introduced in MEV-5168)
2016-12-03 06:17:57 +00:00
Sergei Petrunia
7f43f736ac MDEV-11477: MariaRocks: rocksdb.type_varchar failure
Update the test results (checked)
2016-12-02 20:53:08 +00:00
Sergei Petrunia
097bd3049c MariaRocks port: update test results
- EXPLAIN result differences are due to MariaDB's MDEV-11172
- Don't print the value of rocksdb_supported_compression_types
  to .result file
- The rest is trivial Maria-fication
2016-12-02 20:49:10 +00:00
Sergei Petrunia
9c083cd355 MariaRocks port: update test result for rocksdb.rocksdb_parts
- EXPLAIN is different
- error message is
- the output order is different, because MySQL knows when to use
  ha_partition::handle_unordered_scan_next_partition.
  Reading the table data without any ordering happens to produce
  MariaDB uses  ha_partition::handle_ordered_index_scan for this index
  scan (this is a deficiency), which causes it to produce the row with
  pk=1 first.


  MariaDB uses
2016-12-02 17:25:51 +00:00
Sergei Petrunia
f2219fe94d MDEV-11462: MariaRocks: rocksdb.type_float_indexes fails
Also do similar result updates for:
- rocksdb.type_date_time_indexese
- rocksdb.type_fixed_indexes
2016-12-02 13:59:31 +00:00
Sergei Petrunia
9668b705f9 MDEV-11462: MariaRocks: rocksdb.type_float_indexes fails
Upadte test results (see jira entry for investigation about
the source of the differences)
2016-12-02 13:52:12 +00:00
Sergei Petrunia
3876f461a8 MariaRocks port: MDEV-11318: rocksdb.rocksdb test fails
- MariaDB produces a warning instead of error when the key
  length is too long
- Trivial test results updates
- rocksdb.rocksdb still fails but this commit makes some progress.
2016-11-20 20:54:36 +00:00
Sergei Petrunia
c12a1bb9c2 MariaRocks port: more testcase fixes
rocksdb.lock: LOCK TABLE t1 LOW_PRIORITY WRITE does not produce a
  warining in MariaDB

rocksdb.unique_check:
- MariaDB's mtr prints connection actions
- New (but temporary) ER_LOCK_WAIT_TIMEOUT text

rocksdb.allow_pk_no_concurrent_insert:
- Fix path

rocksdb.locking_issues
- Fix path
- The test still fails but for a different reason now
2016-11-18 21:08:44 +00:00
Sergei Petrunia
e370d0a9ae MariaRocks port: Make rocksdb.compression_zstd test skip itself when ZSTD is not supported
- Introduce @@rocksdb_supported_compression_types read-only variable.
  It has a comma-separated list of compiled-in compression algorithms.

- Make rocksdb.compression_zstd test skip itself when ZSTD support
  is not compiled in
2016-11-13 18:31:09 +00:00
Sergei Petrunia
75f00a3388 MariaRocks port: move --ignore-db-dirs back to suite.opt
I've moved it to storage/rocksdb/mysql-test/rocksdb/my.cnf,
but replication tests do not include that file?

Will need to get back to this when getting replication to work
2016-11-13 11:40:13 +00:00
Sergei Petrunia
826753942f MariaRocks port: temporarily? update ER_LOCK_WAIT_TIMEOUT error messages
facebook/mysql-5.6 has error messages with extra info, MariaDB doesn't
have extra info:
-ERROR HY000: Lock wait timeout exceeded; try restarting transaction: Timeout on index: test.t1.PRIMARY
+ERROR HY000: Lock wait timeout exceeded; try restarting transaction

This patch updates .result files so that differences do not get in the
way; if we decide to use new error message text in MariaDB, this patch
can be applied in reverse.
2016-11-12 09:20:36 +00:00
Sergei Petrunia
a5f72fb3c2 MariaRocks port: put MyRocks options into rocksdb/my.cnf
- Before this, one had to provide appropriate --mysqld=.... options to
  mysql-test-run.

- Also moved one option from rocksdb/suite.opt to rocksdb/my.cnf.
2016-11-12 06:56:39 +00:00
Sergei Petrunia
c4270952b7 MariaRocks port: fix rocksdb.rocksdb_checksums to work for MariaDB in the mornings
MySQL's log entries start with log entries like
YYYY-MM-DD 08:25:04 ...
while MariaDB
YYYY-MM-DD  8:25:04 ...

note that '08' turns into ' 8'.
Made grep pattern to account for this.
2016-11-12 06:09:13 +00:00
Sergei Petrunia
183ab78bab MariaRocks port: more test result updates, again
- Make the same changes as in the previous cset and in
  a cset changing rocksdb.col_opt_null a few csets before.

- MySQL 5.6.11 has fixes for Bug #68472, Bug #16394472, MariaDB doesn't.
  adjust the testcase accordingly.
2016-11-12 04:48:47 +00:00
Sergei Petrunia
223c14e706 MariaRocks port: more test result updates
Make the same changes as with rocksdb.col_opt_null a few csets before:
- MariaDB doesn't provide a default value for non-NULL columns
- Wording in error messages is different
- limits for DECIMAL columns are different
- YEAR(2) is deprecated but still supported

- Also added a --sorted_result for an I_S query.
2016-11-10 22:50:01 +00:00
Sergei Petrunia
792aaedb42 MariaRocks port: Use another way to handle --force-restart
Based on discussion at maria-developers@:
- Remove 'Support --force-restart "pseudo-argument"'
  that was added a few csets before
- Instead, use "source include/restart_mysqld.inc" in the
  testcases that need a freshly-started server
2016-11-10 21:32:31 +00:00
Sergei Petrunia
8014a942b7 MariaRocks port: update results for rocksdb.col_opt_null test.
The differences are due:
- MariaDB 10.1+ assigns different DEFAULT values
  = in some cases, MariaDB's table has no default value, while
    MySQL's has '' as default.
  = BLOB/TEXT can have a default value.
- MariaDB's MTR runs tests with diffferent timezone (affects result of
  FROM_UNIXTIME())
- MySQL has removed YEAR(2). MariaDB produces warning but still creates
  the column of this type.
- Different wording in warning/error messages.
2016-11-10 20:36:24 +00:00
Sergei Petrunia
600a2075b5 MariaRocks port: more of testcase Maria-fication 2016-11-06 22:18:11 +00:00
Sergei Petrunia
df407fca0b MariaRocks port: fix a few more testcases 2016-11-05 23:19:09 +00:00
Sergei Petrunia
0ab7cb236e MariaRocks port: More of testcase Maria-fication 2016-11-05 22:29:02 +00:00