Current Path : /home/usr.opt/mysql57/mysql-test/suite/perfschema/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/perfschema/t/show_sanity.test |
################# suite/perfschema/t/show_sanity.test ########################## # # # Compare global/session status and system variables in the Information Schema # # to those in Performance Schema. Do this once with SHOW_COMPATIBILITY_56 = ON # # again with SHOW_COMPATIBILITY_56 = OFF. # # # # Status and system variables may have a scope of: # # # # GLOBAL - System level only. # # SESSION - Applies at both the global and session level. # # Status variables with SESSION scope are totaled across all # # threads for global queries such as SHOW GLOBAL STATUS. # # System variables with SESSION scope have a global default # # that can be changed at the session level. # # SESSION-ONLY - Client connection level only. # # # #==============================================================================# # This test consists of two phases: # # # # COLLECTION - Gather results from SHOW commands and SELECTs on the I_S/P_S # # tables into a single table. Tag each variable with the source (SHOW, SELECT, # # P_S, I_S) and compatibility mode setting (OFF, ON). # # # # VERIFICATION - Compare and cross-reference the results between and across # # sources and compatibility modes, factoring in the known variances. # # # # The verification phase assumes that there will be no variation between the # # 5.6 and 5.7 results as long as known discrepancies in scope handling are # # accounted for. Expected variations are tagged as "JUNK" and filtered from # # the comparisons. # # # # The expected scope for each variable was initially determined from the MySQL # # system and status variable documentation and then further verified by the # # actual implementation. # # # # The difference between how 5.6 and 5.7 manage query scope vs. variable scope # # are summarized as follows: # # # # *** SHOW_COMPATIBILITY_56 = ON *** # # # # SHOW GLOBAL STATUS / I_S.GLOBAL_STATUS # # GLOBAL - Yes # # SESSION - Yes, totaled across all threads # # SESSION-ONLY - Yes, current session # # # # SHOW SESSION STATUS / I_S.SESSION_STATUS # # GLOBAL - Yes # # SESSION - Yes, current session # # SESSION-ONLY - Yes # # # # SHOW GLOBAL VARIABLES / I_S.GLOBAL_VARIABLES # # GLOBAL - Yes # # SESSION - Yes # # SESSION-ONLY - No # # # # SHOW SESSION VARIABLES / I_S.SESSION_VARIABLES # # GLOBAL - Yes # # SESSION - Yes, current session # # SESSION-ONLY - Yes # # # # *** SHOW_COMPATIBILITY_56 = OFF *** # # # # Information Schema status and system tables are disabled # # (ER_FEATURE_DISABLED_SEE_DOC). # # # # SHOW GLOBAL STATUS / P_S.GLOBAL_STATUS # # GLOBAL - Yes # # SESSION - Yes (totaled across all threads for SHOW STATUS) # # SESSION-ONLY - No # # # # SHOW SESSION STATUS / P_S.SESSION_STATUS, STATUS_BY_THREAD # # GLOBAL - No # # SESSION - Yes # # SESSION-ONLY - Yes # # # # P_S.STATUS_BY_USER / HOST / ACCOUNT # # GLOBAL - No # # SESSION - Yes (totaled across all related threads) # # SESSION-ONLY - No # # # # SHOW GLOBAL VARIABLES / P_S.GLOBAL_VARIABLES # # GLOBAL - Yes # # SESSION - No # # SESSION-ONLY - No # # # # SHOW SESSION VARIABLES / P_S.SESSION_VARIABLES, VARIABLES_BY_THREAD # # GLOBAL - No # # SESSION - Yes # # SESSION-ONLY - Yes # # # # In addition to the differences in how variable scope is handled, comparisons # # between 5.6 and 5.7 must also account for differences in how variables are # # represented based upon the variable type or meaning. For example, # # SESSION-ONLY variables such as "Last Query Cost" have no meaning when # # aggregated by user, account or host. # # # # These additional differences are summarized as follows: # # # # I_S.GLOBAL_STATUS vs. P_S.GLOBAL_STATUS # # - Remove SESSION-ONLY # # - Remove SLAVE-ONLY # # # # I_S.SESSION_STATUS vs. P_S.SESSION_STATUS # # - Remove GLOBAL-only vars # # - Remove SLAVE-ONLY # # # # P_S.SESSION_STATUS vs. P_S.STATUS_BY_USER/HOST/ACCOUNT # # - Remove SESSION-ONLY # # - Remove non-aggregatable # # # ################################################################################ --source include/have_perfschema.inc --source include/not_embedded.inc --source include/no_protocol.inc create table test.sanity( `SHOW_MODE` varchar(48) NOT NULL, `SOURCE` varchar(64) NOT NULL, `VARIABLE_NAME` varchar(64) NOT NULL); select thread_id from performance_schema.threads where processlist_id = connection_id() into @my_tid; select @@global.show_compatibility_56 into @show_compatibility_56_save; set @my_user='root'; set @my_host='localhost'; # Debug # select connection_id(), @my_tid, @my_user, @my_host; # show plugins --echo --echo ================================================================================ --echo SHOW_COMPATIBILITY_56 = ON --echo ================================================================================ set global show_compatibility_56 = on; --echo --echo # STEP 1-1 insert into test.sanity select "5.6", "I_S.GLOBAL_VARIABLES", variable_name from information_schema.global_variables; --echo --echo # STEP 1-2 insert into test.sanity select "5.6", "I_S.SESSION_VARIABLES", variable_name from information_schema.session_variables; --echo --echo # STEP 1-3 insert into test.sanity select "5.6", "P_S.GLOBAL_VARIABLES", variable_name from performance_schema.global_variables; --echo --echo # STEP 1-4 insert into test.sanity select "5.6", "P_S.VARIABLES_BY_THREAD", variable_name from performance_schema.variables_by_thread where thread_id = @my_tid; --echo --echo # STEP 1-5 insert into test.sanity select "5.6", "P_S.SESSION_VARIABLES", variable_name from performance_schema.session_variables; --echo --echo # STEP 1-6 insert into test.sanity select "5.6", "I_S.GLOBAL_STATUS", variable_name from information_schema.global_status; --echo --echo # STEP 1-7 insert into test.sanity select "5.6", "I_S.SESSION_STATUS", variable_name from information_schema.session_status; --echo --echo # STEP 1-8 insert into test.sanity select "5.6", "P_S.GLOBAL_STATUS", variable_name from performance_schema.global_status; --echo --echo # STEP 1-9 --echo # EMPTY, NO WARNINGS (not available in 5.6 mode) select * from performance_schema.status_by_thread; --echo --echo # STEP 1-10 insert into test.sanity select "5.6", "P_S.SESSION_STATUS", variable_name from performance_schema.session_status; --echo --echo # STEP 1-11 --echo # EMPTY, NO WARNINGS (not available in 5.6 mode) select * from performance_schema.status_by_account; --echo --echo # STEP 1-12 --echo # EMPTY, NO WARNINGS (not available in 5.6 mode) select * from performance_schema.status_by_user; --echo --echo # STEP 1-13 --echo # EMPTY, NO WARNINGS (not available in 5.6 mode) select * from performance_schema.status_by_host; --echo --echo ================================================================================ --echo SHOW_COMPATIBILITY_56 = OFF --echo ================================================================================ set global show_compatibility_56 = off; --echo --echo # STEP 2-1 --echo # FAILS WITH ERROR --error ER_FEATURE_DISABLED_SEE_DOC select * from information_schema.global_variables; --echo --echo # STEP 2-2 --echo # FAILS WITH ERROR --error ER_FEATURE_DISABLED_SEE_DOC select * from information_schema.session_variables; --echo --echo # STEP 2-3 insert into test.sanity select "5.7", "P_S.GLOBAL_VARIABLES", variable_name from performance_schema.global_variables; --echo --echo # STEP 2-4 insert into test.sanity select "5.7", "P_S.VARIABLES_BY_THREAD", variable_name from performance_schema.variables_by_thread where thread_id = @my_tid; --echo --echo # STEP 2-5 insert into test.sanity select "5.7", "P_S.SESSION_VARIABLES", variable_name from performance_schema.session_variables; --echo --echo # STEP 2-6 --echo # FAILS WITH ERROR --error ER_FEATURE_DISABLED_SEE_DOC select * from information_schema.global_status; --echo --echo # STEP 2-7 --echo # FAILS WITH ERROR --error ER_FEATURE_DISABLED_SEE_DOC select * from information_schema.session_status; --echo --echo # STEP 2-8 insert into test.sanity select "5.7", "P_S.GLOBAL_STATUS", variable_name from performance_schema.global_status; --echo --echo # STEP 2-9 insert into test.sanity select "5.7", "P_S.STATUS_BY_THREAD", variable_name from performance_schema.status_by_thread where thread_id = @my_tid; --echo --echo # STEP 2-10 insert into test.sanity select "5.7", "P_S.SESSION_STATUS", variable_name from performance_schema.session_status; --echo --echo # STEP 2-11 insert into test.sanity select "5.7", "P_S.STATUS_BY_ACCOUNT", variable_name from performance_schema.status_by_account where `user` = @my_user and `host` = @my_host; --echo --echo # STEP 2-12 insert into test.sanity select "5.7", "P_S.STATUS_BY_USER", variable_name from performance_schema.status_by_user where `user` = @my_user; --echo --echo # STEP 2-13 insert into test.sanity select "5.7", "P_S.STATUS_BY_HOST", variable_name from performance_schema.status_by_host where `host` = @my_host; --echo --echo # STEP 2-14 --echo # Known global variables in 5.6 that should not display in session queries. --echo # These should be global-only system variables. --disable_query_log insert into test.sanity values ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "AUTO_GENERATE_CERTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "AUTOMATIC_SP_PRIVILEGES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "AVOID_TEMPORAL_UPGRADE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BACK_LOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BASEDIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BIND_ADDRESS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOGGING_IMPOSSIBLE_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_CHECKSUM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_ERROR_ACTION"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_GROUP_COMMIT_SYNC_DELAY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_GROUP_COMMIT_SYNC_NO_DELAY_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_GTID_SIMPLE_RECOVERY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_MAX_FLUSH_QUEUE_TIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_ORDER_COMMITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "BINLOG_STMT_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "CHARACTER_SETS_DIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "CHARACTER_SET_SYSTEM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "CHECK_PROXY_USERS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "CONCURRENT_INSERT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "CONNECT_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "CORE_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DATADIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DATETIME_FORMAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DATE_FORMAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DEFAULT_AUTHENTICATION_PLUGIN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DEFAULT_PASSWORD_LIFETIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DELAYED_INSERT_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DELAYED_INSERT_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DELAYED_QUEUE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DELAY_KEY_WRITE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DISABLED_STORAGE_ENGINES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "DISCONNECT_ON_EXPIRED_PASSWORD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "ENFORCE_GTID_CONSISTENCY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "EVENT_SCHEDULER"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "EXECUTED_GTIDS_COMPRESSION_PERIOD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "EXPIRE_LOGS_DAYS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FLUSH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FLUSH_TIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FT_BOOLEAN_SYNTAX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FT_MAX_WORD_LEN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FT_MIN_WORD_LEN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FT_QUERY_EXPANSION_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "FT_STOPWORD_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "GENERAL_LOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "GENERAL_LOG_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "GTID_EXECUTED_COMPRESSION_PERIOD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "GTID_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "GTID_PURGED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_COMPRESS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_CRYPT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_DYNAMIC_LOADING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_GEOMETRY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_OPENSSL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_PROFILING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_QUERY_CACHE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_RTREE_KEYS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_SSL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_STATEMENT_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HAVE_SYMLINK"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HOSTNAME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "HOST_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "IGNORE_BUILTIN_INNODB"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "IGNORE_DB_DIRS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INIT_CONNECT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INIT_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INIT_SLAVE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_FLUSHING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_FLUSHING_LWM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSH_SYNC"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_HASH_INDEX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_HASH_INDEX_PARTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ADAPTIVE_MAX_SLEEP_DELAY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_BK_COMMIT_INTERVAL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_DISABLE_ROWLOCK"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_ENABLE_BINLOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_ENABLE_MDL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_API_TRX_LEVEL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_AUTOEXTEND_INCREMENT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_AUTOINC_LOCK_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BACKGROUND_DROP_LIST_EMPTY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_CHUNK_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_DUMP_AT_SHUTDOWN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_DUMP_NOW"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_DUMP_PCT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_EVICT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_FILENAME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_LOAD_ABORT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_LOAD_AT_STARTUP"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_LOAD_NOW"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUFFER_POOL_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_BUF_FLUSH_LIST_NOW"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHANGE_BUFFERING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHANGE_BUFFERING_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHANGE_BUFFER_MAX_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHECKSUMS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CHECKSUM_ALGORITHM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CMP_PER_INDEX_ENABLED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMMIT_CONCURRENCY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESS_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESSION_FAILURE_THRESHOLD_PCT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESSION_LEVEL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_COMPRESSION_PAD_PCT_MAX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_CONCURRENCY_TICKETS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DATA_FILE_PATH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DATA_HOME_DIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DEFAULT_ROW_FORMAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DICT_STATS_DISABLED_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DISABLE_BACKGROUND_MERGE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DISABLE_RESIZE_BUFFER_POOL_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DISABLE_SORT_FILE_CACHE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DOUBLEWRITE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DOUBLEWRITE_BATCH_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FAST_SHUTDOWN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FILE_FORMAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FILE_FORMAT_CHECK"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FILE_FORMAT_MAX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FILE_PER_TABLE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FILL_FACTOR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FIL_MAKE_PAGE_DIRTY_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSHING_AVG_LOOPS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSH_LOG_AT_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSH_LOG_AT_TRX_COMMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSH_METHOD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FLUSH_NEIGHBORS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FORCE_LOAD_CORRUPTED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FORCE_RECOVERY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FORCE_RECOVERY_CRASH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_AUX_TABLE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_ENABLE_DIAG_PRINT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_MAX_TOKEN_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_MIN_TOKEN_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_NUM_WORD_OPTIMIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_RESULT_CACHE_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_SERVER_STOPWORD_TABLE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_SORT_PLL_DEGREE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FT_TOTAL_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_IO_CAPACITY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_IO_CAPACITY_MAX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LARGE_PREFIX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOCKS_UNSAFE_FOR_BINLOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_BUFFER_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_CHECKPOINT_NOW"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_CHECKSUMS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_COMPRESSED_PAGES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_FILES_IN_GROUP"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_FILE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_GROUP_HOME_DIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_WRITE_AHEAD_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LRU_SCAN_DEPTH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MASTER_THREAD_DISABLED_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_DIRTY_PAGES_PCT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_DIRTY_PAGES_PCT_LWM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_PURGE_LAG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_PURGE_LAG_DELAY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_UNDO_LOG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MERGE_THRESHOLD_SET_ALL_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MONITOR_DISABLE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MONITOR_ENABLE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MONITOR_RESET"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MONITOR_RESET_ALL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_NUMA_INTERLEAVE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_OLD_BLOCKS_PCT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_OLD_BLOCKS_TIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ONLINE_ALTER_LOG_MAX_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_OPEN_FILES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_OPTIMIZE_FULLTEXT_ONLY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PAGE_CLEANERS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PAGE_CLEANER_DISABLED_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PAGE_HASH_LOCKS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PAGE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PRINT_ALL_DEADLOCKS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PURGE_BATCH_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PURGE_RSEG_TRUNCATE_FREQUENCY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PURGE_RUN_NOW"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PURGE_STOP_NOW"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PURGE_THREADS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_RANDOM_READ_AHEAD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_READ_AHEAD_THRESHOLD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_READ_IO_THREADS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_READ_ONLY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_REPLICATION_DELAY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ROLLBACK_ON_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ROLLBACK_SEGMENTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SAVED_PAGE_NUMBER_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SEMAPHORE_WAIT_TIMEOUT_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SORT_BUFFER_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SPIN_WAIT_DELAY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_AUTO_RECALC"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_METHOD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_ON_METADATA"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_PERSISTENT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_PERSISTENT_SAMPLE_PAGES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_SAMPLE_PAGES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATS_TRANSIENT_SAMPLE_PAGES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATUS_OUTPUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_STATUS_OUTPUT_LOCKS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SYNC_ARRAY_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SYNC_SPIN_LOOPS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_SYNC_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_TEMP_DATA_FILE_PATH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_THREAD_CONCURRENCY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_THREAD_SLEEP_DELAY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_TRX_RSEG_N_SLOTS_DEBUG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_UNDO_DIRECTORY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_UNDO_LOG_TRUNCATE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_UNDO_LOGS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_UNDO_TABLESPACES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_USE_NATIVE_AIO"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_VERSION"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_WRITE_IO_THREADS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INTERNAL_TMP_DISK_STORAGE_ENGINE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "KEY_BUFFER_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "KEY_CACHE_AGE_THRESHOLD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "KEY_CACHE_BLOCK_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "KEY_CACHE_DIVISION_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LARGE_FILES_SUPPORT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LARGE_PAGES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LARGE_PAGE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LC_MESSAGES_DIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LICENSE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOCAL_INFILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOCKED_IN_MEMORY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_BIN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_BIN_BASENAME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_BIN_INDEX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_BIN_TRUST_FUNCTION_CREATORS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_BIN_USE_V1_ROW_EVENTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_BUILTIN_AS_IDENTIFIED_BY_PASSWORD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_ERROR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_ERROR_VERBOSITY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_OUTPUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_QUERIES_NOT_USING_INDEXES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SLAVE_UPDATES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SLOW_ADMIN_STATEMENTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SLOW_SLAVE_STATEMENTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SYSLOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SYSLOG_FACILITY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SYSLOG_INCLUDE_PID"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_SYSLOG_TAG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_THROTTLE_QUERIES_NOT_USING_INDEXES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_TIMESTAMPS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOG_WARNINGS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOWER_CASE_FILE_SYSTEM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "LOWER_CASE_TABLE_NAMES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MASTER_INFO_REPOSITORY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MASTER_VERIFY_CHECKSUM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_BINLOG_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_BINLOG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_BINLOG_STMT_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_CONNECTIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_CONNECT_ERRORS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_DIGEST_LENGTH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_PREPARED_STMT_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_RELAY_LOG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MAX_WRITE_LOCK_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "METADATA_LOCKS_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "METADATA_LOCKS_HASH_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MYISAM_DATA_POINTER_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MYISAM_MAX_SORT_FILE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MYISAM_MMAP_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MYISAM_RECOVER_OPTIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MYISAM_USE_MMAP"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "MYSQL_NATIVE_PASSWORD_PROXY_USERS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NAMED_PIPE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NAMED_PIPE_FULL_ACCESS_GROUP"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NDBINFO_DATABASE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NDBINFO_OFFLINE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NDBINFO_TABLE_PREFIX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NDBINFO_VERSION"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "NGRAM_TOKEN_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "OFFLINE_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "OLD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "OPEN_FILES_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_ACCOUNTS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_DIGESTS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_STAGES_HISTORY_LONG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_STAGES_HISTORY_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_STATEMENTS_HISTORY_LONG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_STATEMENTS_HISTORY_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_TRANSACTIONS_HISTORY_LONG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_TRANSACTIONS_HISTORY_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_HOSTS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_COND_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_COND_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_DIGEST_LENGTH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_FILE_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_FILE_HANDLES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_INDEX_STAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_MEMORY_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_METADATA_LOCKS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_PREPARED_STATEMENTS_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_PROGRAM_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_SOCKET_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_SOCKET_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_SQL_TEXT_LENGTH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_STAGE_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_STATEMENT_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_STATEMENT_STACK"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_TABLE_LOCK_STAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_SESSION_CONNECT_ATTRS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_SETUP_ACTORS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_SETUP_OBJECTS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PERFORMANCE_SCHEMA_USERS_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PID_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PLUGIN_DIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PORT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "PROTOCOL_VERSION"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "QUERY_CACHE_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "QUERY_CACHE_MIN_RES_UNIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "QUERY_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "READ_ONLY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_BASENAME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_INDEX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_INFO_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_INFO_REPOSITORY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_PURGE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_RECOVERY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RELAY_LOG_SPACE_LIMIT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "REPORT_HOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "REPORT_PASSWORD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "REPORT_PORT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "REPORT_USER"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "RPL_STOP_SLAVE_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SECURE_AUTH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SECURE_FILE_PRIV"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SERVER_ID"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SERVER_ID_BITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SERVER_UUID"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHA256_PASSWORD_AUTO_GENERATE_RSA_KEYS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHA256_PASSWORD_PRIVATE_KEY_PATH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHA256_PASSWORD_PUBLIC_KEY_PATH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHARED_MEMORY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHARED_MEMORY_BASE_NAME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHA256_PASSWORD_PROXY_USERS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SHOW_COMPATIBILITY_56"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SIMPLIFIED_BINLOG_GTID_RECOVERY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SKIP_EXTERNAL_LOCKING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SKIP_NAME_RESOLVE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SKIP_NETWORKING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SKIP_SHOW_DATABASE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_ALLOW_BATCHING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_CHECKPOINT_GROUP"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_CHECKPOINT_PERIOD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_COMPRESSED_PROTOCOL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_EXEC_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_LOAD_TMPDIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_MAX_ALLOWED_PACKET"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_NET_TIMEOUT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_PARALLEL_TYPE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_PARALLEL_WORKERS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_PENDING_JOBS_SIZE_MAX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_PRESERVE_COMMIT_ORDER"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_ROWS_SEARCH_ALGORITHMS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_SKIP_ERRORS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_SQL_VERIFY_CHECKSUM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_TRANSACTION_RETRIES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLAVE_TYPE_CONVERSIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLOW_LAUNCH_TIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLOW_QUERY_LOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SLOW_QUERY_LOG_FILE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SOCKET"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SQL_SLAVE_SKIP_COUNTER"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_CA"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_CAPATH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_CERT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_CIPHER"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_CRL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_CRLPATH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SSL_KEY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SUPER_READ_ONLY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "STORED_PROGRAM_CACHE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SYNC_BINLOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SYNC_FRM"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SYNC_MASTER_INFO"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SYNC_RELAY_LOG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SYNC_RELAY_LOG_INFO"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "SYSTEM_TIME_ZONE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "TABLE_DEFINITION_CACHE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "TABLE_OPEN_CACHE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "TABLE_OPEN_CACHE_INSTANCES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "THREAD_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "THREAD_HANDLING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "THREAD_STACK"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "TIME_FORMAT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "TMPDIR"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "VERSION"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "VERSION_COMMENT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "VERSION_COMPILE_MACHINE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "VERSION_COMPILE_OS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "REQUIRE_SECURE_TRANSPORT") ; --enable_query_log --echo --echo # STEP 2-15 --echo # Known global status in 5.6 that should not exist in session queries. --echo # These should be global-only status variables. --disable_query_log insert into test.sanity values ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "ABORTED_CLIENTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "ABORTED_CONNECTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "BINLOG_CACHE_DISK_USE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "BINLOG_CACHE_USE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "BINLOG_STMT_CACHE_DISK_USE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "BINLOG_STMT_CACHE_USE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTION_ERRORS_ACCEPT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTION_ERRORS_INTERNAL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTION_ERRORS_MAX_CONNECTIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTION_ERRORS_PEER_ADDRESS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTION_ERRORS_SELECT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CONNECTION_ERRORS_TCPWRAP"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "CREATED_TMP_FILES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "DELAYED_ERRORS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "DELAYED_INSERT_THREADS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "DELAYED_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "FLUSH_COMMANDS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_AHI_DROP_LOOKUPS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_AVAILABLE_UNDO_LOGS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_BYTES_DATA"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_BYTES_DIRTY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_DUMP_STATUS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_LOAD_STATUS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_DATA"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_DIRTY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_FLUSHED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_FREE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_LATCHED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_MISC"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_PAGES_TOTAL"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_READS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_READ_AHEAD"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_READ_AHEAD_EVICTED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_READ_AHEAD_RND"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_READ_REQUESTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_RESIZE_STATUS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_WAIT_FREE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_BUFFER_POOL_WRITE_REQUESTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_FSYNCS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_PENDING_FSYNCS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_PENDING_READS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_PENDING_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_READ"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_READS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DATA_WRITTEN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DBLWR_PAGES_WRITTEN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_DBLWR_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_HAVE_ATOMIC_BUILTINS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_LOG_WAITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_LOG_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_LOG_WRITE_REQUESTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_NUM_OPEN_FILES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_OS_LOG_FSYNCS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_OS_LOG_PENDING_FSYNCS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_OS_LOG_PENDING_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_OS_LOG_WRITTEN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_PAGES_CREATED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_PAGES_READ"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_PAGES_WRITTEN"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_PAGE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_PURGE_TRX_ID_AGE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_PURGE_VIEW_TRX_ID_AGE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROWS_DELETED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROWS_INSERTED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROWS_READ"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROWS_UPDATED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROW_LOCK_CURRENT_WAITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROW_LOCK_TIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROW_LOCK_TIME_AVG"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROW_LOCK_TIME_MAX"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_ROW_LOCK_WAITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "INNODB_TRUNCATED_STATUS_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_BLOCKS_NOT_FLUSHED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_BLOCKS_UNUSED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_BLOCKS_USED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_READS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_READ_REQUESTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_WRITES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "KEY_WRITE_REQUESTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "LOCKED_CONNECTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "MAX_USED_CONNECTIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "MAX_USED_CONNECTIONS_TIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "NOT_FLUSHED_DELAYED_ROWS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "OPENED_FILES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "OPEN_FILES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "OPEN_STREAMS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "OPEN_TABLE_DEFINITIONS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "ONGOING_ANONYMOUS_GTID_VIOLATING_TRANSACTION_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "ONGOING_ANONYMOUS_TRANSACTION_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "ONGOING_AUTOMATIC_GTID_VIOLATING_TRANSACTION_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_ACCOUNTS_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_COND_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_COND_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_DIGEST_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_FILE_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_FILE_HANDLES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_FILE_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_INDEX_STAT_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_HOSTS_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_LOCKER_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_MEMORY_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_METADATA_LOCK_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_MUTEX_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_MUTEX_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_NESTED_STATEMENT_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_PREPARED_STATEMENTS_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_PROGRAM_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_RWLOCK_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_RWLOCK_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_SESSION_CONNECT_ATTRS_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_SOCKET_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_SOCKET_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_STAGE_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_STATEMENT_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_TABLE_HANDLES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_TABLE_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_TABLE_LOCK_STAT_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_THREAD_CLASSES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_THREAD_INSTANCES_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PERFORMANCE_SCHEMA_USERS_LOST"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "PREPARED_STMT_COUNT"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_FREE_BLOCKS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_FREE_MEMORY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_HITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_INSERTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_LOWMEM_PRUNES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_NOT_CACHED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_QUERIES_IN_CACHE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "QCACHE_TOTAL_BLOCKS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "RSA_PUBLIC_KEY"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SLAVE_OPEN_TEMP_TABLES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SLAVE_ROWS_LAST_SEARCH_ALGORITHM_USED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_ACCEPTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_ACCEPT_RENEGOTIATES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_CALLBACK_CACHE_HITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_CLIENT_CONNECTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_CONNECT_RENEGOTIATES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_CTX_VERIFY_DEPTH"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_CTX_VERIFY_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_FINISHED_ACCEPTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_FINISHED_CONNECTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_SESSION_CACHE_HITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_SESSION_CACHE_MISSES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_SESSION_CACHE_MODE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_SESSION_CACHE_OVERFLOWS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_SESSION_CACHE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_SESSION_CACHE_TIMEOUTS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "SSL_USED_SESSION_CACHE_ENTRIES"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "TABLE_LOCKS_IMMEDIATE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "TABLE_LOCKS_WAITED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "TC_LOG_MAX_PAGES_USED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "TC_LOG_PAGE_SIZE"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "TC_LOG_PAGE_WAITS"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "THREADS_CACHED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "THREADS_CONNECTED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "THREADS_CREATED"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "THREADS_RUNNING"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "UPTIME"), ("JUNK: GLOBAL-ONLY", "I_S.SESSION_STATUS", "UPTIME_SINCE_FLUSH_STATUS") ; --enable_query_log --echo --echo # STEP 2-15A --echo # COM counters appear in I_S.SESSION_STATUS, but not in P_S.SESSION_STATUS --disable_query_log insert into test.sanity values ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ADMIN_COMMANDS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_DB"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_DB_UPGRADE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_EVENT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_FUNCTION"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_INSTANCE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_SERVER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_TABLE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_TABLESPACE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ALTER_USER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ANALYZE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ASSIGN_TO_KEYCACHE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_BEGIN"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_BINLOG"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CALL_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CHANGE_DB"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CHANGE_MASTER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CHANGE_REPL_FILTER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CHECK"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CHECKSUM"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_COMMIT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_DB"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_EVENT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_FUNCTION"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_INDEX"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_SERVER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_TABLE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_TRIGGER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_UDF"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_USER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_CREATE_VIEW"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DEALLOC_SQL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DELETE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DELETE_MULTI"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DO"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_DB"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_EVENT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_FUNCTION"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_INDEX"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_SERVER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_TABLE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_TRIGGER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_USER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_DROP_VIEW"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_EMPTY_QUERY"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_EXECUTE_SQL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_EXPLAIN_OTHER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_FLUSH"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_GET_DIAGNOSTICS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_GROUP_REPLICATION_START"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_GROUP_REPLICATION_STOP"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_GRANT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_HA_CLOSE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_HA_OPEN"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_HA_READ"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_HELP"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_INSERT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_INSERT_SELECT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_INSTALL_PLUGIN"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_KILL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_LOAD"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_LOCK_TABLES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_OPTIMIZE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_PRELOAD_KEYS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_PREPARE_SQL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_PURGE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_PURGE_BEFORE_DATE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_RELEASE_SAVEPOINT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_RENAME_TABLE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_RENAME_USER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_REPAIR"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_REPLACE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_REPLACE_SELECT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_RESET"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_RESIGNAL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_REVOKE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_REVOKE_ALL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ROLLBACK"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_ROLLBACK_TO_SAVEPOINT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SAVEPOINT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SELECT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SET_OPTION"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_BINLOGS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_BINLOG_EVENTS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CHARSETS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_COLLATIONS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_DB"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_EVENT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_FUNC"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_PROC"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_TABLE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_TRIGGER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_CREATE_USER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_DATABASES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_ENGINE_LOGS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_ENGINE_MUTEX"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_ENGINE_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_ERRORS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_EVENTS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_FIELDS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_FUNCTION_CODE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_FUNCTION_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_GRANTS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_KEYS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_MASTER_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_OPEN_TABLES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PLUGINS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PRIVILEGES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PROCEDURE_CODE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PROCEDURE_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PROCESSLIST"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PROFILE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_PROFILES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_RELAYLOG_EVENTS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_SLAVE_HOSTS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_SLAVE_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_SLAVE_STATUS_NONBLOCKING"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_STORAGE_ENGINES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_TABLES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_TABLE_STATUS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_TRIGGERS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_VARIABLES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SHOW_WARNINGS"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SIGNAL"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SLAVE_START"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_SLAVE_STOP"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_STMT_CLOSE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_STMT_EXECUTE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_STMT_FETCH"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_STMT_PREPARE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_STMT_RESET"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_STMT_SEND_LONG_DATA"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_TRUNCATE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_UNINSTALL_PLUGIN"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_UNLOCK_TABLES"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_UPDATE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_UPDATE_MULTI"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_XA_COMMIT"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_XA_END"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_XA_PREPARE"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_XA_RECOVER"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_XA_ROLLBACK"), ("JUNK: COM COUNTER", "I_S.SESSION_STATUS", "COM_XA_START") ; --enable_query_log --echo --echo # STEP 2-15B --echo # These slave status counters appear in I_S.SESSION_STATUS, but not in P_S.SESSION_STATUS insert into test.sanity values ("JUNK: SLAVE-ONLY", "I_S.SESSION_STATUS", "SLAVE_HEARTBEAT_PERIOD"), ("JUNK: SLAVE-ONLY", "I_S.SESSION_STATUS", "SLAVE_LAST_HEARTBEAT"), ("JUNK: SLAVE-ONLY", "I_S.SESSION_STATUS", "SLAVE_RECEIVED_HEARTBEATS"), ("JUNK: SLAVE-ONLY", "I_S.SESSION_STATUS", "SLAVE_RETRIED_TRANSACTIONS"), ("JUNK: SLAVE-ONLY", "I_S.SESSION_STATUS", "SLAVE_RUNNING") ; --echo --echo # STEP 2-16 --echo # Known session-only status in 5.6 that should not exist in global queries. insert into test.sanity values ("JUNK: SESSION-ONLY", "I_S.GLOBAL_STATUS", "COMPRESSION"), ("JUNK: SESSION-ONLY", "I_S.GLOBAL_STATUS", "LAST_QUERY_COST"), ("JUNK: SESSION-ONLY", "I_S.GLOBAL_STATUS", "LAST_QUERY_PARTIAL_PLANS") ; --echo --echo # STEP 2-16A --echo # COM counters appear in I_S.GLOBAL_STATUS but not in P_S.GLOBAL_STATUS --disable_query_log insert into test.sanity values ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ADMIN_COMMANDS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_DB"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_DB_UPGRADE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_EVENT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_FUNCTION"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_INSTANCE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_SERVER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_TABLE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_TABLESPACE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ALTER_USER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ANALYZE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ASSIGN_TO_KEYCACHE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_BEGIN"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_BINLOG"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CALL_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CHANGE_DB"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CHANGE_MASTER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CHANGE_REPL_FILTER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CHECK"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CHECKSUM"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_COMMIT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_DB"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_EVENT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_FUNCTION"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_INDEX"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_SERVER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_TABLE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_TRIGGER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_UDF"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_USER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_CREATE_VIEW"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DEALLOC_SQL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DELETE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DELETE_MULTI"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DO"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_DB"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_EVENT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_FUNCTION"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_INDEX"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_PROCEDURE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_SERVER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_TABLE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_TRIGGER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_USER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_DROP_VIEW"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_EMPTY_QUERY"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_EXECUTE_SQL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_EXPLAIN_OTHER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_FLUSH"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_GET_DIAGNOSTICS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_GRANT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_GROUP_REPLICATION_START"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_GROUP_REPLICATION_STOP"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_HA_CLOSE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_HA_OPEN"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_HA_READ"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_HELP"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_INSERT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_INSERT_SELECT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_INSTALL_PLUGIN"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_KILL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_LOAD"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_LOCK_TABLES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_OPTIMIZE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_PRELOAD_KEYS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_PREPARE_SQL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_PURGE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_PURGE_BEFORE_DATE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_RELEASE_SAVEPOINT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_RENAME_TABLE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_RENAME_USER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_REPAIR"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_REPLACE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_REPLACE_SELECT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_RESET"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_RESIGNAL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_REVOKE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_REVOKE_ALL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ROLLBACK"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_ROLLBACK_TO_SAVEPOINT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SAVEPOINT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SELECT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SET_OPTION"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_BINLOGS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_BINLOG_EVENTS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CHARSETS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_COLLATIONS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_DB"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_EVENT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_FUNC"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_PROC"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_TABLE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_TRIGGER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_CREATE_USER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_DATABASES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_ENGINE_LOGS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_ENGINE_MUTEX"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_ENGINE_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_ERRORS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_EVENTS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_FIELDS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_FUNCTION_CODE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_FUNCTION_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_GRANTS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_KEYS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_MASTER_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_OPEN_TABLES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PLUGINS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PRIVILEGES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PROCEDURE_CODE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PROCEDURE_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PROCESSLIST"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PROFILE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_PROFILES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_RELAYLOG_EVENTS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_SLAVE_HOSTS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_SLAVE_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_SLAVE_STATUS_NONBLOCKING"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_STORAGE_ENGINES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_TABLES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_TABLE_STATUS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_TRIGGERS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_VARIABLES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SHOW_WARNINGS"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SIGNAL"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SLAVE_START"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_SLAVE_STOP"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_STMT_CLOSE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_STMT_EXECUTE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_STMT_FETCH"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_STMT_PREPARE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_STMT_RESET"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_STMT_SEND_LONG_DATA"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_TRUNCATE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_UNINSTALL_PLUGIN"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_UNLOCK_TABLES"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_UPDATE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_UPDATE_MULTI"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_XA_COMMIT"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_XA_END"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_XA_PREPARE"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_XA_RECOVER"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_XA_ROLLBACK"), ("JUNK: COM COUNTER", "I_S.GLOBAL_STATUS", "COM_XA_START") ; --enable_query_log --echo --echo # STEP 2-16B --echo # These slave status counters appear in I_S.GLOBAL_STATUS, but not in P_S.GLOBAL_STATUS insert into test.sanity values ("JUNK: SLAVE-ONLY", "I_S.GLOBAL_STATUS", "SLAVE_HEARTBEAT_PERIOD"), ("JUNK: SLAVE-ONLY", "I_S.GLOBAL_STATUS", "SLAVE_LAST_HEARTBEAT"), ("JUNK: SLAVE-ONLY", "I_S.GLOBAL_STATUS", "SLAVE_RECEIVED_HEARTBEATS"), ("JUNK: SLAVE-ONLY", "I_S.GLOBAL_STATUS", "SLAVE_RETRIED_TRANSACTIONS"), ("JUNK: SLAVE-ONLY", "I_S.GLOBAL_STATUS", "SLAVE_RUNNING") ; --echo --echo # STEP 2-17 --echo # Status variables that should not exist in queries that aggregate across threads. --echo # Criteria: Session-only OR non-aggregatable. insert into test.sanity values ("JUNK", "NO AGGREGATE", "COMPRESSION"), ("JUNK", "NO AGGREGATE", "LAST_QUERY_COST"), ("JUNK", "NO AGGREGATE", "LAST_QUERY_PARTIAL_PLANS"), ("JUNK", "NO AGGREGATE", "OPEN_TABLES"), ("JUNK", "NO AGGREGATE", "QUERIES"), ("JUNK", "NO AGGREGATE", "SLOW_LAUNCH_THREADS"), ("JUNK", "NO AGGREGATE", "SSL_CIPHER"), ("JUNK", "NO AGGREGATE", "SSL_CIPHER_LIST"), ("JUNK", "NO AGGREGATE", "SSL_DEFAULT_TIMEOUT"), ("JUNK", "NO AGGREGATE", "SSL_SERVER_NOT_AFTER"), ("JUNK", "NO AGGREGATE", "SSL_SERVER_NOT_BEFORE"), ("JUNK", "NO AGGREGATE", "SSL_SESSIONS_REUSED"), ("JUNK", "NO AGGREGATE", "SSL_VERIFY_DEPTH"), ("JUNK", "NO AGGREGATE", "SSL_VERIFY_MODE"), ("JUNK", "NO AGGREGATE", "SSL_VERSION") ; #Debug #select * from test.sanity order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 1A --echo Present in 5.6 P_S.GLOBAL_VARIABLES (1-3) --echo Missing in 5.6 I_S.GLOBAL_VARIABLES (1-1) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "P_S.GLOBAL_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.GLOBAL_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 1B --echo Present in 5.7 P_S.GLOBAL_VARIABLES (2-3) --echo Missing in 5.6 I_S.GLOBAL_VARIABLES (1-1) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.GLOBAL_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 2A --echo Present in 5.6 I_S.GLOBAL_VARIABLES (1-1) --echo Missing in 5.6 P_S.GLOBAL_VARIABLES (1-3) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.GLOBAL_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "P_S.GLOBAL_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 2B --echo Present in 5.6 I_S.GLOBAL_VARIABLES (1-1) --echo Missing in 5.7 P_S.GLOBAL_VARIABLES (2-3) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.GLOBAL_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 3A --echo Present in 5.6 P_S.SESSION_VARIABLES (1-5) --echo Missing in 5.6 I_S.SESSION_VARIABLES (1-2) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "P_S.SESSION_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 3B --echo Present in 5.7 P_S.SESSION_VARIABLES (2-5) --echo Missing in 5.6 I_S.SESSION_VARIABLES (1-2) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 4A --echo Present in 5.6 I_S.SESSION_VARIABLES (1-2) --echo Missing in 5.6 P_S.SESSION_VARIABLES (1-5) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "P_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 4B --echo Present in 5.6 I_S.SESSION_VARIABLES (1-2) --echo Missing in 5.7 P_S.SESSION_VARIABLES (2-5) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 5A --echo Present in 5.6 P_S.VARIABLES_BY_THREAD (1-4) --echo Missing in 5.6 I_S.SESSION_VARIABLES (1-2) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "P_S.VARIABLES_BY_THREAD" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 5B --echo Present in 5.7 P_S.VARIABLES_BY_THREAD (2-4) --echo Missing in 5.6 I_S.SESSION_VARIABLES (1-2) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.VARIABLES_BY_THREAD" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 5C --echo Present in 5.6 I_S.SESSION_VARIABLES (1-2) --echo Missing in 5.6 P_S.VARIABLES_BY_THREAD (1-4) --echo EXPECT NOTHING BESIDE KNOWN GLOBAL VARIABLES (2-14) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "P_S.VARIABLES_BY_THREAD") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "JUNK: GLOBAL-ONLY" and source = "I_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 5D --echo Present in 5.6 I_S.SESSION_VARIABLES (1-2) --echo Missing in 5.7 P_S.VARIABLES_BY_THREAD (2-5) --echo EXPECT NOTHING BESIDE KNOWN GLOBAL VARIABLES (2-14) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_VARIABLES" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.VARIABLES_BY_THREAD") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "JUNK: GLOBAL-ONLY" and source = "I_S.SESSION_VARIABLES") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 5E --echo KNOWN GLOBAL VARIABLES (2-14) --echo Expect missing in 5.6 P_S.VARIABLES_BY_THREAD (1-4) --echo ================================================================================ select * from test.sanity where show_mode = "JUNK: GLOBAL-ONLY" and source = "I_S.SESSION_VARIABLES" and upper(variable_name) in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "P_S.VARIABLES_BY_THREAD") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 5F --echo KNOWN GLOBAL VARIABLES (2-14) --echo Expect missing in 5.7 P_S.VARIABLES_BY_THREAD (2-5) --echo ================================================================================ select * from test.sanity where show_mode = "JUNK: GLOBAL-ONLY" and source = "I_S.SESSION_VARIABLES" and upper(variable_name) in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.VARIABLES_BY_THREAD") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 6A --echo Present in 5.7 P_S.GLOBAL_STATUS (2-8) --echo Missing in 5.6 I_S.GLOBAL_STATUS (1-6) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.GLOBAL_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 6B --echo Present in 5.7 P_S.GLOBAL_STATUS (2-8) --echo Missing in 5.6 P_S.GLOBAL_STATUS (1-8) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "P_S.GLOBAL_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 6C --echo Present in 5.6 P_S.GLOBAL_STATUS (1-8) --echo Missing in 5.7 P_S.GLOBAL_STATUS (2-8) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "P_S.GLOBAL_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 7 --echo Present in 5.6 I_S.GLOBAL_STATUS (1-6) --echo Missing in 5.7 P_S.GLOBAL_STATUS (2-8) --echo EXPECT NOTHING AFTER REMOVING KNOWN SESSION-ONLY, COM COUNTERS AND SLAVE-ONLY (2-16 & 2-16A & 2-16B) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.GLOBAL_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: SESSION-ONLY" or show_mode = "JUNK: COM COUNTER" or show_mode = "JUNK: SLAVE-ONLY") and source = "I_S.GLOBAL_STATUS") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 8 --echo KNOWN SESSION-ONLY (2-16) --echo KNOWN COM COUNTERS (2-16A) --echo KNOWN SLAVE-ONLY (2-16B) --echo Status variables that should NOT be present in 5.7 P_S.GLOBAL_STATUS (2-8) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.GLOBAL_STATUS" and upper(variable_name) in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: SESSION-ONLY" or show_mode = "JUNK: COM COUNTER" or show_mode = "JUNK: SLAVE-ONLY") and source = "I_S.GLOBAL_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 9A --echo Present in 5.7 P_S.SESSION_STATUS (2-10) --echo Missing in 5.6 I_S.SESSION_STATUS (1-7) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 9B --echo Present in 5.7 P_S.SESSION_STATUS (2-10) --echo Missing in 5.6 P_S.SESSION_STATUS (1-10) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.6" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 9C --echo Present in 5.6 P_S.SESSION_STATUS (1-10) --echo Missing in 5.7 P_S.SESSION_STATUS (2-10) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 10 --echo Present in 5.6 I_S.SESSION_STATUS (1-7) --echo Missing in 5.7 P_S.SESSION_STATUS (2-10) --echo EXPECT NOTHING AFTER REMOVING KNOWN COM COUNTERS AND SLAVE-ONLY (2-15A & 2-15B) --echo ================================================================================ select * from test.sanity where show_mode = "5.6" and source = "I_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: COM COUNTER" or show_mode = "JUNK: SLAVE-ONLY") and source = "I_S.SESSION_STATUS") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 11 --echo KNOWN COM COUNTERS (2-15A) --echo KNOWN SLAVE-ONLY (2-15B) --echo Status variables that should NOT be present in 5.7 P_S.SESSION_STATUS (2-10) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: COM COUNTER" or show_mode = "JUNK: SLAVE-ONLY") and source = "I_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 12 --echo Present in 5.7 P_S.SESSION_STATUS (2-10) --echo Missing in 5.7 P_S.STATUS_BY_THREAD --echo EXPECT NOTHING AFTER REMOVING KNOWN GLOBAL-ONLY (2-15) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_THREAD") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: GLOBAL-ONLY") and source = "I_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 13 --echo Present in 5.7 P_S.STATUS_BY_THREAD --echo Missing in 5.7 P_S.SESSION_STATUS (2-10) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_THREAD" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 14 --echo Present in 5.7 P_S.SESSION_STATUS (2-10) --echo Missing in 5.7 P_S.STATUS_BY_ACCOUNT --echo EXPECT NOTHING AFTER REMOVING --echo - KNOWN GLOBAL-ONLY (2-15) --echo - STATUS VARS THAT CAN'T BE AGGREGATED (2-17) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "JUNK" and source = "NO AGGREGATE") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: GLOBAL-ONLY") and source = "I_S.SESSION_STATUS") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_ACCOUNT") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 15 --echo Present in 5.7 P_S.STATUS_BY_ACCOUNT --echo Missing in 5.7 P_S.SESSION_STATUS (2-10) --echo EXPECT NOTHING --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_ACCOUNT" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 16 --echo KNOWN STATUS VARS THAT CAN'T BE AGGREGATED (2-17) --echo Status variables that should NOT be present in 5.7 P_S.STATUS_BY_ACCOUNT --echo ================================================================================ select * from performance_schema.status_by_account where upper(variable_name) in ( select upper(variable_name) from test.sanity where show_mode = "JUNK" and source = "NO AGGREGATE") order by variable_name; --echo --echo ================================================================================ --echo TEST 17 --echo Present in 5.7 P_S.SESSION_STATUS (2-10) --echo Missing in 5.7 P_S.STATUS_BY_USER --echo EXPECT NOTHING AFTER REMOVING --echo - KNOWN GLOBAL-ONLY (2-15) --echo - STATUS VARS THAT CAN'T BE AGGREGATED (2-17) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "JUNK" and source = "NO AGGREGATE") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: GLOBAL-ONLY") and source = "I_S.SESSION_STATUS") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_USER") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 18 --echo Present in 5.7 P_S.STATUS_BY_USER --echo Missing in 5.7 P_S.SESSION_STATUS (2-10) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_USER" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 19 --echo KNOWN STATUS VARS THAT CAN'T BE AGGREGATED (2-17) --echo Status variables that should NOT be present in 5.7 P_S.STATUS_BY_USER --echo ================================================================================ select * from performance_schema.status_by_user where upper(variable_name) in ( select upper(variable_name) from test.sanity where show_mode = "JUNK" and source = "NO AGGREGATE") order by variable_name; --echo --echo ================================================================================ --echo TEST 20 --echo Present in 5.7 P_S.SESSION_STATUS (2-10) --echo Missing in 5.7 P_S.STATUS_BY_HOST --echo EXPECT NOTHING AFTER REMOVING --echo - KNOWN GLOBAL-ONLY (2-15) --echo - STATUS VARS THAT CAN'T BE AGGREGATED (2-17) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "JUNK" and source = "NO AGGREGATE") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where (show_mode = "JUNK: GLOBAL-ONLY") and source = "I_S.SESSION_STATUS") and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_HOST") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 21 --echo Present in 5.7 P_S.STATUS_BY_HOST --echo Missing in 5.7 P_S.SESSION_STATUS (2-10) --echo ================================================================================ select * from test.sanity where show_mode = "5.7" and source = "P_S.STATUS_BY_HOST" and upper(variable_name) not in ( select upper(variable_name) from test.sanity where show_mode = "5.7" and source = "P_S.SESSION_STATUS") order by show_mode, source, variable_name; --echo --echo ================================================================================ --echo TEST 22 --echo KNOWN STATUS VARS THAT CAN'T BE AGGREGATED (2-17) --echo Status variables that should NOT be present in 5.7 P_S.STATUS_BY_HOST --echo ================================================================================ select * from performance_schema.status_by_host where upper(variable_name) in ( select upper(variable_name) from test.sanity where show_mode = "JUNK" and source = "NO AGGREGATE") order by variable_name; --echo --echo ================================================================================ --echo CLEAN UP --echo ================================================================================ set @@global.show_compatibility_56 = @show_compatibility_56_save; drop table test.sanity;