Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/21227
Change subject: KUDU-3562 fix integer overflow in available space metrics ...................................................................... KUDU-3562 fix integer overflow in available space metrics This patch addresses KUDU-3562. The problem was in implicit casting of 64-bit integers down to 32-bit ones when introducing a helper variable CalculateAvailableSpace(). A new test scenario is added to cover the fixed issue and catch regressions in future, if any. In addition, the patch corrects the type of the related metrics in disk_failure-itest.cc and clarifies on the description and tags for the --fs_{data_dirs,wal_dir}_available_space_cache_seconds flags. Change-Id: I974aea822626e4648886388c0de3741ac459f2ec --- M src/kudu/fs/data_dirs.cc M src/kudu/integration-tests/disk_failure-itest.cc M src/kudu/integration-tests/disk_reservation-itest.cc M src/kudu/server/server_base.cc 4 files changed, 109 insertions(+), 14 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/27/21227/1 -- To view, visit http://gerrit.cloudera.org:8080/21227 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I974aea822626e4648886388c0de3741ac459f2ec Gerrit-Change-Number: 21227 Gerrit-PatchSet: 1 Gerrit-Owner: Alexey Serbin <ale...@apache.org>