Skip to content

Commit

Permalink
Fix more tests - #8
Browse files Browse the repository at this point in the history
Summary:
1. Disable more tests that were missed last time due to missing features
2. handler_basic.test : move FLUSH STATS *after* CREATE TABLE as CREATE TABLE also calls handler::write_row for innodb, not surprisingly.
3. Account for explain select format differences.
4. rocksdb.test: disable portion of test that use partition, sort the result for better stability
5. consistent_snapshot_mixed_engines: 8.0 now properly supports cross-engine snapshots (it calls the callback for each engine to create snasphot) so rebaseline for the behavioral differences - now innodb and rocksdb can share the same snapshot.
6. rpl_rocksdb_snapshot: rebaseline for binlog position change and don't use master_auto_position with master_log_pos.
7. rpl_crash_safe_wal_corrupt/rpl_gtid_crash_safe_wal_corrupt : Enable idempotent_recovery. Note they still need a missing patch to work completely.
8. rpl_gtid_rocksdb_sys_header: need to set rpl_allow_error=1 as the test is expecting binlog corruption
9. delete singledelete_idempotent_table as we don't have rbr_idempotent_table anymore.

Reviewed By: lth

Differential Revision: D17676018

fbshipit-source-id: 2ab5dbf8264
  • Loading branch information
yizhang82 authored and facebook-github-bot committed Dec 23, 2019
1 parent ad87e93 commit 8784a7f
Show file tree
Hide file tree
Showing 20 changed files with 123 additions and 178 deletions.
37 changes: 31 additions & 6 deletions mysql-test/collections/disabled_rocksdb.def
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,47 @@ rocksdb.ttl_secondary_with_partitions : partition feature is missing in 8.0
rocksdb.issue495 : partition feature is missing in 8.0
rocksdb.rocksdb_parts : partition feature is missing in 8.0
rocksdb.get_error_message : partition feature is missing in 8.0
rocksdb.autoinc_crash_safe_partition : partition feature is missing in 8.0

# Missing authentication plugin
rocksdb.rocksdb_deadlock_stress : authentication plugin is missing in 8.0
rocksdb.rocksdb_deadlock_stress_rc : authentication plugin is missing in 8.0
rocksdb.rocksdb_deadlock_stress_rr : authentication plugin is missing in 8.0
rocksdb.allow_no_pk_concurrent_insert : authentication plugin is missing in 8.0
rocksdb.rqg_examples : authentication plugin is missing in 8.0
rocksdb.rqg_runtime : authentication plugin is missing in 8.0
rocksdb.rqg_transactions : authentication plugin is missing in 8.0

# Missing features
# disable_testcase BUG#888001
rocksdb.explicit_snapshot : missing patch
rocksdb.explicit_snapshot : missing patch 0b671a35cc7 SQL to create and manage explicit snapshots
rocksdb.create_no_primary_key_table : missing patch
rocksdb.rocksdb_qcache : missing patch
rocksdb.skip_core_dump_on_error : missing patch
rocksdb.optimize_myrocks_replace_into_base : missing patch
rocksdb.optimize_myrocks_replace_into_lock : missing patch
rocksdb_rpl.optimize_myrocks_replace_into : missing patch
rocksdb.mysqlbinlog_blind_replace : missing patch
rocksdb.gap_lock_issue254 : missing patch
rocksdb.gap_lock_raise_error : missing patch
rocksdb_rpl.rpl_mts_dependency_unique_key_conflicts : missing patch
rocksdb.innodb_i_s_tables_disabled : missing patch
rocksdb.force_shutdown: missing 5354b969fa6 Extending SHUTDOWN query to support read_only/aborting
rocksdb_rpl.rpl_rocksdb_schema_change : missing 031b5cec711 Use column names while applying row changes on slave
rocksdb_rpl.rpl_gtid_rocksdb_sys_header: missing 00861dd66bf make gtid enabled slave with less durable settings crash safe
rocksdb_rpl.rocksdb_slave_check_before_image_consistency : missing d8c69f9f5a9 [replication] Check before image consistency before applying row events
rocksdb_rpl.rpl_no_unique_check_on_lag : missing d80175902ee Disable unique checks when replica is lagging
rocksdb_rpl.rpl_no_unique_check_on_lag_mts : missing d80175902ee Disable unique checks when replica is lagging
rocksdb.percona_nonflushing_analyze_debug : missing dbc7c09e252 Fix bug 1704195 / 87065 / TDB-83 (Stop ANALYZE TABLE from flushing table definition cache)
rocksdb.2pc_group_commit : missing 37c7ed00ce9 write/sync redo log before flushing binlog cache to file
rocksdb.slow_query_log : missing 91d708f9efb Add support for reporting keys/deletes skipped in the extra slow query log

# Blind replace
rocksdb.optimize_myrocks_replace_into_base : missing patch f14c64cf950 Optimize replace into to do a blind write
rocksdb.optimize_myrocks_replace_into_lock : missing patch f14c64cf950 Optimize replace into to do a blind write
rocksdb_rpl.optimize_myrocks_replace_into : missing patch f14c64cf950 Optimize replace into to do a blind write
rocksdb.mysqlbinlog_blind_replace : missing patch f14c64cf950 Optimize replace into to do a blind write

# Recovery
rocksdb_rpl.rpl_ttl_ignore_idempotent_errors : missing 92a364f86100 Ignore idempotent error in TTL tables
rocksdb_rpl.rpl_gtid_crash_safe_wal_corrupt : missing 00861dd66bf make gtid enabled slave with less durable settings crash safe
rocksdb_rpl.rpl_crash_safe_wal_corrupt : missing 00861dd66bf make gtid enabled slave with less durable settings crash safe

# Schema Validation
rocksdb.validate_datadic : redesign the testcase around schema validation
Expand All @@ -69,4 +86,12 @@ rocksdb.lock_wait_timeout_stats : table_statistics missing
rocksdb.rpl_row_stats : table_statistics missing
rocksdb.table_stats : table_statistics missing
rocksdb.bytes_written : table_statistics missing
rocksdb.deadlock_statsh : table_statistics missing
rocksdb.deadlock_stats : table_statistics missing

# Detached session
rocksdb.com_rpc_tx : detached session is missing in 8.0

# Misc bugs
rocksdb.bloomfilter3 : query plan is different between 8.0 and 5.6
rocksdb.issue884 : query plan is different between 8.0 and 5.6

2 changes: 1 addition & 1 deletion mysql-test/include/sync_slave_sql.inc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ if ($_sss_result < 0)
--echo ERROR: timeout='$_sss_slave_timeout'
--echo ERROR: result='$_sss_result'
--echo ERROR: error type: $error_type
--die Error in sync_with_master.inc
--die Error in sync_slave_sql.inc
}
--let $include_filename= sync_slave_sql.inc
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rocksdb/r/handler_basic.result
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DROP TABLE IF EXISTS t1;
FLUSH STATUS;
CREATE TABLE t1 (id INT PRIMARY KEY, a VARCHAR(100), b INT,
INDEX b(b)) ENGINE=rocksdb;
FLUSH STATUS;
INSERT INTO t1 (id,a,b) VALUES (1,'foobar',100),(2,'z',0),(3,'bar',50);
SHOW SESSION STATUS LIKE 'Handler_write%';
Variable_name Value
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rocksdb/t/handler_basic.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
DROP TABLE IF EXISTS t1;
--enable_warnings

FLUSH STATUS;
CREATE TABLE t1 (id INT PRIMARY KEY, a VARCHAR(100), b INT,
INDEX b(b)) ENGINE=rocksdb;
FLUSH STATUS;
INSERT INTO t1 (id,a,b) VALUES (1,'foobar',100),(2,'z',0),(3,'bar',50);
SHOW SESSION STATUS LIKE 'Handler_write%';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
################################################################################
# Test the --skip-empty-trans option for mysqlbinlog with rocksdb
################################################################################
--disable_warnings
--source include/have_gtid.inc
--enable_warnings

reset master;
set timestamp=1000000000;
let $storage_engine=rocksdb;
Expand Down
Loading

0 comments on commit 8784a7f

Please sign in to comment.