Andrew Wong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/9027
Change subject: KUDU-1489: allow configuration of metadata dir ...................................................................... KUDU-1489: allow configuration of metadata dir Metadata files currently reside in the first configured data directory, which isn't always the best choice. This first drive, if not performant, can act as a bottleneck; often times the drive containing the WALs is a better choice, as it is recommended to be the fastest. This patch allows users to configure their metadata directory through the new fs_metadata_dir flag. If empty, Kudu will check if a metadata directory exists in the first member of fs_data_dirs, and if none exists, Kudu will use fs_wal_dir as the root directory for metadata. Otherwise, the flag will be honored verbatim. It is up to the user to take caution in changing this flag; updating the flag without also manually moving any existing metadata will cause Kudu to fail at startup. Aside from the update to the directory location, codepaths that previously assumed that the first data directory _must_ be healthy have been updated. The remaining invariant is that at least a single data directory must be healthy. A new test cases is added to fs_manager-test, and a test case in data_dirs-test is updated as a sanity check to show that we can now open the directory manager with a failed first data directory (previously this codepath with lead to D/CHECK failures). Change-Id: I375c6b2eb283db5fa9c956135d98252c8781f5db --- M src/kudu/fs/block_manager_util.cc M src/kudu/fs/data_dirs-test.cc M src/kudu/fs/data_dirs.cc M src/kudu/fs/fs_manager-test.cc M src/kudu/fs/fs_manager.cc M src/kudu/fs/fs_manager.h 6 files changed, 142 insertions(+), 40 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/27/9027/1 -- To view, visit http://gerrit.cloudera.org:8080/9027 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I375c6b2eb283db5fa9c956135d98252c8781f5db Gerrit-Change-Number: 9027 Gerrit-PatchSet: 1 Gerrit-Owner: Andrew Wong <[email protected]>
