summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/maintenancecontroller
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-01-09 14:23:32 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-01-09 14:23:32 +0000
commit6ddda72b257f60acebfa2b6f021aa3159324c010 (patch)
treefdc47c7723f7e36c2720c5d5a8f607b7ace955f3 /searchcore/src/tests/proton/documentdb/maintenancecontroller
parentf2a1c1653c3a33a257bf471e4426e834a4a6bff3 (diff)
Add resource limit factor used by maintenance job to get a slightly higher
resource limit when determining if maintenance job can be run. This allows for maintenance job to continue running even if feeding is blocked until the adjusted limit is reached.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/maintenancecontroller')
-rw-r--r--searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp b/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp
index f14072cf2ce..e8f6d6707e2 100644
--- a/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp
@@ -544,7 +544,8 @@ public:
_mcCfg->getVisibilityDelay(),
_mcCfg->getLidSpaceCompactionConfig(),
_mcCfg->getAttributeUsageFilterConfig(),
- _mcCfg->getAttributeUsageSampleInterval()));
+ _mcCfg->getAttributeUsageSampleInterval(),
+ _mcCfg->getResourceLimitFactor()));
_mcCfg = newCfg;
forwardMaintenanceConfig();
}
@@ -561,7 +562,8 @@ public:
_mcCfg->getVisibilityDelay(),
_mcCfg->getLidSpaceCompactionConfig(),
_mcCfg->getAttributeUsageFilterConfig(),
- _mcCfg->getAttributeUsageSampleInterval()));
+ _mcCfg->getAttributeUsageSampleInterval(),
+ _mcCfg->getResourceLimitFactor()));
_mcCfg = newCfg;
forwardMaintenanceConfig();
}
@@ -578,7 +580,8 @@ public:
_mcCfg->getVisibilityDelay(),
_mcCfg->getLidSpaceCompactionConfig(),
_mcCfg->getAttributeUsageFilterConfig(),
- _mcCfg->getAttributeUsageSampleInterval()));
+ _mcCfg->getAttributeUsageSampleInterval(),
+ _mcCfg->getResourceLimitFactor()));
_mcCfg = newCfg;
forwardMaintenanceConfig();
}
@@ -596,7 +599,8 @@ public:
_mcCfg->getVisibilityDelay(),
_mcCfg->getLidSpaceCompactionConfig(),
_mcCfg->getAttributeUsageFilterConfig(),
- _mcCfg->getAttributeUsageSampleInterval()));
+ _mcCfg->getAttributeUsageSampleInterval(),
+ _mcCfg->getResourceLimitFactor()));
_mcCfg = newCfg;
forwardMaintenanceConfig();
}