aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2021-09-20 14:24:41 +0200
committerGitHub <noreply@github.com>2021-09-20 14:24:41 +0200
commita26d83aab1acbe84ce31a7f886374e33202ec0d0 (patch)
treea09b952441bc566393b65ffc58a18d475d806f41 /storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp
parent23a050f3ae7755670a1b13e9f26fe8b19fb81042 (diff)
parent830bd44f5fa5cb5a0a2ee7ca34e8afaff40c474d (diff)
Merge pull request #19202 from vespa-engine/vekterli/remove-most-of-distributor-legacy-mode
Remove most traces of distributor legacy mode [run-systemtest]
Diffstat (limited to 'storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp')
-rw-r--r--storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp b/storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp
index 01f7d5a4f0a..d57ce228908 100644
--- a/storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp
+++ b/storage/src/tests/distributor/top_level_bucket_db_updater_test.cpp
@@ -630,7 +630,7 @@ TopLevelBucketDBUpdaterTest::trigger_completed_but_not_yet_activated_transition(
}
TEST_F(TopLevelBucketDBUpdaterTest, normal_usage) {
- set_cluster_state(lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"));
+ set_cluster_state(lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3")); // FIXME init mode why?
ASSERT_EQ(message_count(3), _sender.commands().size());
@@ -638,21 +638,21 @@ TEST_F(TopLevelBucketDBUpdaterTest, normal_usage) {
ASSERT_EQ(_component->getDistribution()->getNodeGraph().getDistributionConfigHash(),
dynamic_cast<const RequestBucketInfoCommand&>(*_sender.command(0)).getDistributionHash());
- ASSERT_NO_FATAL_FAILURE(fake_bucket_reply(lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"),
+ ASSERT_NO_FATAL_FAILURE(fake_bucket_reply(lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"), // FIXME init mode why?
*_sender.command(0), 10));
_sender.clear();
// Optimization for not refetching unneeded data after cluster state
// change is only implemented after completion of previous cluster state
- set_cluster_state("distributor:2 .0.s:i storage:3");
+ set_cluster_state("distributor:2 .0.s:i storage:3"); // FIXME init mode why?
ASSERT_EQ(message_count(3), _sender.commands().size());
// Expect reply of first set SystemState request.
ASSERT_EQ(size_t(1), _sender.replies().size());
ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(
- lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"),
+ lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"), // FIXME init mode why?
message_count(3), 10));
ASSERT_NO_FATAL_FAILURE(assert_correct_buckets(10, "distributor:2 storage:3"));
}
@@ -661,9 +661,9 @@ TEST_F(TopLevelBucketDBUpdaterTest, distributor_change) {
int num_buckets = 100;
// First sends request
- set_cluster_state("distributor:2 .0.s:i .1.s:i storage:3");
+ set_cluster_state("distributor:2 .0.s:i .1.s:i storage:3"); // FIXME init mode why?
ASSERT_EQ(message_count(3), _sender.commands().size());
- ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"),
+ ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(lib::ClusterState("distributor:2 .0.s:i .1.s:i storage:3"), // FIXME init mode why?
message_count(3), num_buckets));
_sender.clear();
@@ -718,14 +718,14 @@ TEST_F(TopLevelBucketDBUpdaterTest, distributor_change_with_grouping) {
}
TEST_F(TopLevelBucketDBUpdaterTest, normal_usage_initializing) {
- set_cluster_state("distributor:1 .0.s:i storage:1 .0.s:i");
+ set_cluster_state("distributor:1 .0.s:i storage:1 .0.s:i"); // FIXME init mode why?
ASSERT_EQ(_bucket_spaces.size(), _sender.commands().size());
// Not yet passing on system state.
ASSERT_EQ(size_t(0), _sender_down.commands().size());
- ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(lib::ClusterState("distributor:1 .0.s:i storage:1"),
+ ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(lib::ClusterState("distributor:1 .0.s:i storage:1"), // FIXME init mode why?
_bucket_spaces.size(), 10, 10));
ASSERT_NO_FATAL_FAILURE(assert_correct_buckets(10, "distributor:1 storage:1"));
@@ -740,12 +740,12 @@ TEST_F(TopLevelBucketDBUpdaterTest, normal_usage_initializing) {
_sender.clear();
_sender_down.clear();
- set_cluster_state("distributor:1 .0.s:i storage:1");
+ set_cluster_state("distributor:1 .0.s:i storage:1"); // FIXME init mode why?
// Send a new request bucket info up.
ASSERT_EQ(_bucket_spaces.size(), _sender.commands().size());
- ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(lib::ClusterState("distributor:1 .0.s:i storage:1"),
+ ASSERT_NO_FATAL_FAILURE(complete_bucket_info_gathering(lib::ClusterState("distributor:1 .0.s:i storage:1"), // FIXME init mode why?
_bucket_spaces.size(), 20));
// Pass on cluster state and recheck buckets now.
@@ -755,7 +755,7 @@ TEST_F(TopLevelBucketDBUpdaterTest, normal_usage_initializing) {
}
TEST_F(TopLevelBucketDBUpdaterTest, failed_request_bucket_info) {
- set_cluster_state("distributor:1 .0.s:i storage:1");
+ set_cluster_state("distributor:1 .0.s:i storage:1"); // FIXME init mode why?
// 2 messages sent up: 1 to the nodes, and one reply to the setsystemstate.
ASSERT_EQ(_bucket_spaces.size(), _sender.commands().size());
@@ -781,7 +781,7 @@ TEST_F(TopLevelBucketDBUpdaterTest, failed_request_bucket_info) {
ASSERT_EQ(size_t(0), _sender_down.commands().size());
for (uint32_t i = 0; i < _bucket_spaces.size(); ++i) {
- ASSERT_NO_FATAL_FAILURE(fake_bucket_reply(lib::ClusterState("distributor:1 .0.s:i storage:1"),
+ ASSERT_NO_FATAL_FAILURE(fake_bucket_reply(lib::ClusterState("distributor:1 .0.s:i storage:1"), // FIXME init mode why?
*_sender.command(_bucket_spaces.size() + i), 10));
}