-
Notifications
You must be signed in to change notification settings - Fork 717
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
- Loading branch information
1 parent
b354aae
commit 13690e4
Showing
7 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
mysql-test/suite/rocksdb_clone/r/compression_config.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN'; | ||
SET GLOBAL clone_enable_compression = ON; | ||
SET GLOBAL clone_compression_algorithm = ZSTD; | ||
SET GLOBAL clone_zstd_compression_level = 8; | ||
SET GLOBAL clone_autotune_concurrency = OFF; | ||
SET GLOBAL clone_max_concurrency = 8; | ||
SET GLOBAL clone_valid_donor_list = 'HOST:PORT'; | ||
CLONE INSTANCE FROM USER@HOST:PORT IDENTIFIED BY '' DATA DIRECTORY = 'CLONE_DATADIR'; | ||
select ID, STATE, ERROR_NO from performance_schema.clone_status; | ||
ID STATE ERROR_NO | ||
1 Completed 0 | ||
select ID, STAGE, STATE from performance_schema.clone_progress; | ||
ID STAGE STATE | ||
1 DROP DATA Completed | ||
1 FILE COPY Completed | ||
1 PAGE COPY Completed | ||
1 SST COPY Completed | ||
1 REDO COPY Completed | ||
1 FILE SYNC Completed | ||
1 RESTART Not Started | ||
1 RECOVERY Not Started | ||
# restart | ||
UNINSTALL PLUGIN clone; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--source include/have_rocksdb.inc | ||
|
||
--let $HOST = 127.0.0.1 | ||
--let $PORT =`select @@port` | ||
--let $USER = root | ||
--let remote_clone = 1 | ||
|
||
--source ../../clone/include/clone_connection_begin.inc | ||
--let $CLONE_DATADIR = $MYSQL_TMP_DIR/data_new | ||
|
||
# Install Clone Plugin | ||
--replace_result $CLONE_PLUGIN CLONE_PLUGIN | ||
--eval INSTALL PLUGIN clone SONAME '$CLONE_PLUGIN' | ||
|
||
--connection clone_conn_1 | ||
SET GLOBAL clone_enable_compression = ON; | ||
SET GLOBAL clone_compression_algorithm = ZSTD; | ||
SET GLOBAL clone_zstd_compression_level = 8; | ||
--source ../../clone/include/clone_command.inc | ||
|
||
--force-rmdir $CLONE_DATADIR | ||
|
||
--let restart_parameters= | ||
--source include/restart_mysqld.inc | ||
|
||
# Clean up | ||
UNINSTALL PLUGIN clone; | ||
--source ../../clone/include/clone_connection_end.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters