Yongheng Deng has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23726


Change subject: KUDU-3722 unit mismatch in ProceedWithFlush
......................................................................

KUDU-3722 unit mismatch in ProceedWithFlush

MaintenanceManager's ProceedWithFlush function uses units inconsistent
with process_memory::UnderMemoryPressure when checking memory pressure:
soft_limit and pressure_threshold are treated as decimals (0–1)
while used_memory_percentage is a percentage (0–100). This causes
ProceedWithFlush to always return true once memory usage exceeds
memory_pressure_percentage, which is not the intended behavior
introduced by KUDU-3407.

This patch changes soft_limit and pressure_threshold to percentage form
and fixes relevant tests

Change-Id: Icb4c299a83c61bd934d67f32446696988bbe3a08
---
M src/kudu/util/maintenance_manager-test.cc
M src/kudu/util/maintenance_manager.cc
2 files changed, 8 insertions(+), 8 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/26/23726/1
--
To view, visit http://gerrit.cloudera.org:8080/23726
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb4c299a83c61bd934d67f32446696988bbe3a08
Gerrit-Change-Number: 23726
Gerrit-PatchSet: 1
Gerrit-Owner: Yongheng Deng <[email protected]>

Reply via email to