summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-05-11 15:15:02 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-05-12 13:16:54 +0200
commit0fa71866cd87e65331169700c656313f41f85eaa (patch)
tree789fabc2aab84cc9fb22b2da3afa361ea63cd2b4 /searchcore/src/tests/proton/documentdb
parenta5e31d496d4cb1594cbf55d8d268b8b7a5e0b2c3 (diff)
Calculate transient memory usage for load of attribute vector.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb')
-rw-r--r--searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp b/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp
index 1f0f3566b1d..6eaa1bd373a 100644
--- a/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/maintenancecontroller/maintenancecontroller_test.cpp
@@ -3,11 +3,14 @@
#include <vespa/document/repo/documenttyperepo.h>
#include <vespa/document/test/make_bucket_space.h>
#include <vespa/fastos/thread.h>
+#include <vespa/config-attributes.h>
+#include <vespa/searchcore/proton/attribute/attribute_config_inspector.h>
#include <vespa/searchcore/proton/attribute/attribute_usage_filter.h>
#include <vespa/searchcore/proton/attribute/i_attribute_manager.h>
#include <vespa/searchcore/proton/bucketdb/bucket_create_notifier.h>
#include <vespa/searchcore/proton/common/doctypename.h>
#include <vespa/searchcore/proton/common/feedtoken.h>
+#include <vespa/searchcore/proton/common/transient_memory_usage_provider.h>
#include <vespa/searchcore/proton/documentmetastore/operation_listener.h>
#include <vespa/searchcore/proton/feedoperation/moveoperation.h>
#include <vespa/searchcore/proton/feedoperation/pruneremoveddocumentsoperation.h>
@@ -60,6 +63,7 @@ using storage::spi::Timestamp;
using vespalib::Slime;
using vespalib::makeClosure;
using vespalib::makeTask;
+using vespa::config::search::AttributesConfigBuilder;
using BlockedReason = IBlockableMaintenanceJob::BlockedReason;
@@ -885,6 +889,8 @@ MaintenanceControllerFixture::injectMaintenanceJobs()
_jobTrackers, *this,
_readyAttributeManager,
_notReadyAttributeManager,
+ std::make_unique<const AttributeConfigInspector>(AttributesConfigBuilder()),
+ std::make_shared<TransientMemoryUsageProvider>(),
_attributeUsageFilter);
}
}