Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Andrew Wong, I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/18374 to look at the new patch set (#5). Change subject: [tool] Add tool to copy replica from local filesystem ...................................................................... [tool] Add tool to copy replica from local filesystem Add tool to copy replica from local filesystem, it would be faster than copy from remote peers, it can be use when add more disk drivers and make data rebalanced faster between disk drivers, or can be used when migrate data from the only disk driver to another. This tool will also make data more dense than data on old data directories, that means we can save much disk space and speedup server bootstrap. We can use the tool like: kudu local_replica copy_from_local <tablet_id> [-src_fs_wal_dir=<dir>] [-src_fs_metadata_dir=<dir>] [-src_fs_data_dirs=<dirs>] [-dst_fs_wal_dir=<dir>] [-dst_fs_metadata_dir=<dir>] [-dst_fs_data_dirs=<dirs>] There are some tips to use this tool: - Using --src_* and --dst_* prefixes to clarify what directories are operating on - The server on the source filesystem must stop before coping replicas. Because the tool is standalone, it can't anchor replica's data blocks or log segments. - This tool will not delete data in the source filesystem, you should delete data manully if you want, by using kudu local_replica delete ... Change-Id: I1dcafeaad900b66f297914760c54dba887874e95 --- M src/kudu/integration-tests/tablet_copy-itest.cc M src/kudu/master/master_runner.cc M src/kudu/tablet/tablet_replica.cc M src/kudu/tablet/tablet_replica.h M src/kudu/tools/kudu-tool-test.cc M src/kudu/tools/tool_action_local_replica.cc M src/kudu/tserver/tablet_copy-test-base.h M src/kudu/tserver/tablet_copy_client-test.cc M src/kudu/tserver/tablet_copy_client.cc M src/kudu/tserver/tablet_copy_client.h M src/kudu/tserver/tablet_copy_service-test.cc M src/kudu/tserver/tablet_copy_service.cc M src/kudu/tserver/tablet_copy_service.h M src/kudu/tserver/tablet_copy_source_session-test.cc M src/kudu/tserver/tablet_copy_source_session.cc M src/kudu/tserver/tablet_copy_source_session.h M src/kudu/tserver/ts_tablet_manager.cc 17 files changed, 910 insertions(+), 247 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/74/18374/5 -- To view, visit http://gerrit.cloudera.org:8080/18374 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I1dcafeaad900b66f297914760c54dba887874e95 Gerrit-Change-Number: 18374 Gerrit-PatchSet: 5 Gerrit-Owner: Yingchun Lai <acelyc1112...@gmail.com> Gerrit-Reviewer: Alexey Serbin <ale...@apache.org> Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Yingchun Lai <acelyc1112...@gmail.com>