Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Bugfix issue195 (#198)
Browse files Browse the repository at this point in the history
* Preliminary fix for issue #195

* Changed the user name

* Finalizing the feature
  • Loading branch information
Shahriyar Rzayev authored Nov 21, 2017
1 parent d5b41b7 commit d448c63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions prepare_env_test_mode/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate_config_files(test_path, conf_file, basedir, datadir, sock_file, bac
config.set(section2, "#xtra_options", "--binlog-info=ON --galera-info")
if '5.7' in basedir:
config.set(section2, "xtra_options", "--slave-info --no-version-check --core-file "
"--parallel=1 --throttle=40 "
"--parallel=10 --throttle=40 "
"--keyring-file-data={}/mysql-keyring/keyring".format(basedir))
else:
config.set(section2, "xtra_options", "--slave-info --no-version-check --core-file "
Expand Down Expand Up @@ -141,7 +141,7 @@ def generate_config_files(test_path, conf_file, basedir, datadir, sock_file, bac
config.add_section(section7)
config.set(section7, "start_mysql_command", "{}/start".format(basedir))
config.set(section7, "stop_mysql_command", "{}/stop".format(basedir))
config.set(section7, "chown_command", "chown -R vagrant:vagrant")
config.set(section7, "chown_command", "chown -R shahriyar.rzaev:shahriyar.rzaev")

section8 = "TestConf"
config.add_section(section8)
Expand All @@ -165,7 +165,7 @@ def generate_config_files(test_path, conf_file, basedir, datadir, sock_file, bac
if '5_7' in conf_file:
config.set(section8, "mysql_options",
"--innodb_buffer_pool_size=1G 2G 3G,--innodb_log_file_size=1G 2G 3G,"
"--innodb_page_size=64K 32K 16K 8K 4K")
"--innodb_page_size=4K 8K 16K 32K")
else:
config.set(section8, "mysql_options",
"--innodb_buffer_pool_size=1G 2G 3G,--innodb_log_file_size=1G 2G 3G,"
Expand Down
11 changes: 7 additions & 4 deletions prepare_env_test_mode/take_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ def run_all_backup(self):
# Compression related issue -> https://bugs.launchpad.net/percona-xtrabackup/+bug/1641745
# Disabling for now
# TODO: Enable this after #1641745 is fixed.
# sql_compress = "alter table sysbench_test_db.sbtest{} compression='lz4'".format(i)
# RunBenchmark.run_sql_statement(basedir=self.basedir, sql_statement=sql_compress)
# sql_optimize = "optimize table sysbench_test_db.sbtest{}".format(i)
# RunBenchmark.run_sql_statement(basedir=self.basedir, sql_statement=sql_optimize)
sql_compress = "alter table sysbench_test_db.sbtest{} compression='lz4'".format(i)
RunBenchmark.run_sql_statement(basedir=self.basedir, sql_statement=sql_compress)
sql_optimize = "optimize table sysbench_test_db.sbtest{}".format(i)
RunBenchmark.run_sql_statement(basedir=self.basedir, sql_statement=sql_optimize)
for i in range(10, 15):
sql_compress = "alter table sysbench_test_db.sbtest{} compression='zlib'".format(i)
RunBenchmark.run_sql_statement(basedir=self.basedir, sql_statement=sql_compress)
# NOTE: PXB will ignore rocksdb tables, which is going to break pt-table-checksum
# for i in range(10, 15):
# sql_alter = "alter table sysbench_test_db.sbtest{} engine=rocksdb".format(i)
Expand Down

0 comments on commit d448c63

Please sign in to comment.