Andrew Wong has uploaded a new patch set (#9) to the change originally created by Adar Dembo. ( http://gerrit.cloudera.org:8080/8352 )
Change subject: tool: new action for adding to the set of data directories ...................................................................... tool: new action for adding to the set of data directories This patch includes support for adding to the set of data directories in an existing Kudu filesystem. The only user-facing bit is a new FsManager option that, when set, augments Open() to also look for missing fs roots. If any are found, they will be created, and the existing data directory instance files updated to recognize these new roots. Also included is a new tool action that opens an FsManager with this option set. Updating the set of data directories is a complex, multi-step operation, and a single error could leave the filesystem in a difficult-to-repair state. As such, there is some fairly gnarly rollback code that attempts to undo the changes made in the event of an error. This logic can be extended to remove data directories. This patch only addresses adding. Change-Id: I6ddbdd6cc6231996e7802a622a8b4691527a0643 --- M src/kudu/fs/block_manager_util-test.cc M src/kudu/fs/block_manager_util.cc M src/kudu/fs/block_manager_util.h M src/kudu/fs/data_dirs-test.cc M src/kudu/fs/data_dirs.cc M src/kudu/fs/data_dirs.h M src/kudu/fs/fs_manager-test.cc M src/kudu/fs/fs_manager.cc M src/kudu/fs/fs_manager.h M src/kudu/tools/kudu-tool-test.cc M src/kudu/tools/tool_action_fs.cc 11 files changed, 730 insertions(+), 169 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/52/8352/9 -- To view, visit http://gerrit.cloudera.org:8080/8352 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newpatchset Gerrit-Change-Id: I6ddbdd6cc6231996e7802a622a8b4691527a0643 Gerrit-Change-Number: 8352 Gerrit-PatchSet: 9 Gerrit-Owner: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Adar Dembo <a...@cloudera.com> Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com> Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <t...@apache.org>