You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "ZhangYao (Code Review)" <ge...@cloudera.org> on 2019/08/13 11:43:44 UTC

[kudu-CR] KUDU-2901: Consider the available space when selecting data dirs for tablets and blocks.

Hello Yingchun Lai, Kudu Jenkins, Andrew Wong, Adar Dembo, 

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/13975

to look at the new patch set (#11).

Change subject: KUDU-2901: Consider the available space when selecting data dirs for tablets and blocks.
......................................................................

KUDU-2901: Consider the available space when selecting data dirs for tablets and blocks.

When creating tablets:
If randomly selected two dirs have same tablets count, gives prefrence to the
one with more free space.

When creating blocks:
Randomly select two not full dir in tablet's data dir group and then choose
the dir which has more free space.

Change-Id: I194c4965ee64aed728e3b84e684c04d445cbe529
---
M src/kudu/fs/block_manager-test.cc
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/file_block_manager.cc
M src/kudu/fs/log_block_manager.cc
M src/kudu/integration-tests/disk_failure-itest.cc
M src/kudu/util/env_util.cc
M src/kudu/util/env_util.h
9 files changed, 105 insertions(+), 86 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/75/13975/11
-- 
To view, visit http://gerrit.cloudera.org:8080/13975
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I194c4965ee64aed728e3b84e684c04d445cbe529
Gerrit-Change-Number: 13975
Gerrit-PatchSet: 11
Gerrit-Owner: ZhangYao <tr...@gmail.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <40...@qq.com>
Gerrit-Reviewer: ZhangYao <tr...@gmail.com>