Adar Dembo has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/13975 )

Change subject: Consider the available space when selecting data dirs for 
blocks.
......................................................................


Patch Set 6:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/13975/6/src/kudu/fs/data_dirs.cc
File src/kudu/fs/data_dirs.cc:

http://gerrit.cloudera.org:8080/#/c/13975/6/src/kudu/fs/data_dirs.cc@991
PS6, Line 991:
             :   if (FLAGS_refresh_is_full_with_expired_only_for_testing) {
             :     // This currently should only be reached by 
disk_failure-itest.
             :     refresh_mode = DataDir::RefreshMode::EXPIRED_ONLY;
             :   }
> I prefer to change the EXPIRED_ONLY behaviors in RefreshIsFull such as igno
Yeah Andrew's proposal makes sense to me. We could probably also reduce the 
caching time from 30s to something like 5s if you're worried about holding onto 
a stale disk space value for too long. BTW, you might find 
https://github.com/apache/kudu/commit/2a802f9f376de5175170a933bc8c35154f6eda92 
interesting.

FWIW, I don't find the test-only gflag terribly offensive if the alternatives 
are worse. Just make sure you tag it as HIDDEN.



--
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: comment
Gerrit-Change-Id: I194c4965ee64aed728e3b84e684c04d445cbe529
Gerrit-Change-Number: 13975
Gerrit-PatchSet: 6
Gerrit-Owner: ZhangYao <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yingchun Lai <[email protected]>
Gerrit-Reviewer: ZhangYao <[email protected]>
Gerrit-Comment-Date: Wed, 07 Aug 2019 04:23:46 +0000
Gerrit-HasComments: Yes

Reply via email to