diff options
author | Harald Musum <musum@verizonmedia.com> | 2022-02-23 09:09:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 09:09:29 +0100 |
commit | cec6b4cd41087e3173b50523ad83f5d5080e8fa1 (patch) | |
tree | aa18aa2ac2d5e2ef0aa7301ad62453a8b055a66e /searchcore/src/tests/proton/documentdb/storeonlyfeedview | |
parent | 9edb5e75186d7d93a564c1edb1d4549c0e259a39 (diff) |
Revert "Revert "Revert "Use common tranport for TlsClient"""
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/storeonlyfeedview')
-rw-r--r-- | searchcore/src/tests/proton/documentdb/storeonlyfeedview/CMakeLists.txt | 1 | ||||
-rw-r--r-- | searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp | 15 |
2 files changed, 8 insertions, 8 deletions
diff --git a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/CMakeLists.txt b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/CMakeLists.txt index 6d94c066d20..3cdad86e9d7 100644 --- a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/CMakeLists.txt +++ b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/CMakeLists.txt @@ -3,7 +3,6 @@ vespa_add_executable(searchcore_storeonlyfeedview_test_app TEST SOURCES storeonlyfeedview_test.cpp DEPENDS - searchcore_test searchcore_server searchcore_feedoperation searchcore_documentmetastore diff --git a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp index acd33ab749d..b1d7ee1d0a8 100644 --- a/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp +++ b/searchcore/src/tests/proton/documentdb/storeonlyfeedview/storeonlyfeedview_test.cpp @@ -3,6 +3,7 @@ #include <vespa/document/base/documentid.h> #include <vespa/document/datatype/datatype.h> #include <vespa/searchcommon/common/schema.h> +#include <vespa/searchcore/proton/server/executorthreadingservice.h> #include <vespa/searchcore/proton/server/putdonecontext.h> #include <vespa/searchcore/proton/server/removedonecontext.h> #include <vespa/searchcore/proton/server/storeonlyfeedview.h> @@ -11,11 +12,9 @@ #include <vespa/searchcore/proton/feedoperation/pruneremoveddocumentsoperation.h> #include <vespa/searchcore/proton/reference/dummy_gid_to_lid_change_handler.h> #include <vespa/searchcore/proton/test/mock_summary_adapter.h> -#include <vespa/searchcore/proton/test/transport_helper.h> #include <vespa/searchcore/proton/test/thread_utils.h> #include <vespa/searchlib/index/docbuilder.h> #include <vespa/vespalib/util/destructor_callbacks.h> -#include <vespa/vespalib/util/size_literals.h> #include <vespa/vespalib/testkit/testapp.h> #include <vespa/log/log.h> @@ -212,7 +211,8 @@ struct FixtureBase { std::atomic<int> heartbeatCount; std::atomic<int> outstandingMoveOps; DocumentMetaStore::SP metaStore; - TransportAndExecutorService _service; + vespalib::ThreadStackExecutor sharedExecutor; + ExecutorThreadingService writeService; std::shared_ptr<PendingLidTrackerBase> pendingLidsForCommit; typename FeedViewType::UP feedview; SerialNum serial_num; @@ -226,7 +226,8 @@ struct FixtureBase { DocumentMetaStore::getFixedName(), search::GrowStrategy(), subDbType)), - _service(1), + sharedExecutor(1, 0x10000), + writeService(sharedExecutor), pendingLidsForCommit(std::make_shared<PendingLidTracker>()), feedview(), serial_num(2u) @@ -234,7 +235,7 @@ struct FixtureBase { StoreOnlyFeedView::PersistentParams params(0, 0, DocTypeName("foo"), subdb_id, subDbType); metaStore->constructFreeList(); ISummaryAdapter::SP adapter = std::make_shared<MySummaryAdapter>(removeCount, putCount, heartbeatCount); - feedview = std::make_unique<FeedViewType>(adapter, metaStore, _service.write(), + feedview = std::make_unique<FeedViewType>(adapter, metaStore, writeService, params, pendingLidsForCommit, outstandingMoveOps); } @@ -262,11 +263,11 @@ struct FixtureBase { template <typename FunctionType> void runInMasterAndSync(FunctionType func) { - test::runInMasterAndSync(_service.write(), func); + test::runInMasterAndSync(writeService, func); } template <typename FunctionType> void runInMaster(FunctionType func) { - test::runInMaster(_service.write(), func); + test::runInMaster(writeService, func); } void force_commit() { |