File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ ClusterShardInfos GetConfigForStats(ConnectionContext* cntx) {
68
68
CHECK (ClusterConfig::Current () != nullptr );
69
69
70
70
auto config = ClusterConfig::Current ()->GetConfig ();
71
- if (cntx->conn ()->IsPrivileged () || ! absl::GetFlag (FLAGS_managed_service_info) ) {
71
+ if (cntx->conn ()->IsPrivileged ()) {
72
72
return config;
73
73
}
74
74
Original file line number Diff line number Diff line change @@ -459,7 +459,8 @@ async def test_cluster_managed_service_info(df_factory):
459
459
replica_id ,
460
460
]
461
461
)
462
- assert await c_master .execute_command ("CLUSTER SLOTS" ) == expected_full_cluster_slots
462
+ # managed_service_info is ignored for cluster because we have "hidden" health for replica
463
+ assert await c_master .execute_command ("CLUSTER SLOTS" ) == expected_hidden_cluster_slots
463
464
assert await c_master_admin .execute_command ("CLUSTER SLOTS" ) == expected_full_cluster_slots
464
465
465
466
expected_hidden_cluster_nodes = {
@@ -489,7 +490,8 @@ async def test_cluster_managed_service_info(df_factory):
489
490
"node_id" : replica_id ,
490
491
"slots" : [],
491
492
}
492
- assert await c_master .execute_command ("CLUSTER NODES" ) == expected_full_cluster_nodes
493
+ # managed_service_info is ignored for cluster because we have "hidden" health for replica
494
+ assert await c_master .execute_command ("CLUSTER NODES" ) == expected_hidden_cluster_nodes
493
495
assert await c_master_admin .execute_command ("CLUSTER NODES" ) == expected_full_cluster_nodes
494
496
495
497
expected_hidden_cluster_shards = [
@@ -536,7 +538,8 @@ async def test_cluster_managed_service_info(df_factory):
536
538
"online" ,
537
539
]
538
540
)
539
- assert await c_master .execute_command ("CLUSTER SHARDS" ) == expected_full_cluster_shards
541
+ # managed_service_info is ignored for cluster because we have "hidden" health for replica
542
+ assert await c_master .execute_command ("CLUSTER SHARDS" ) == expected_hidden_cluster_shards
540
543
assert await c_master_admin .execute_command ("CLUSTER SHARDS" ) == expected_full_cluster_shards
541
544
542
545
await c_master .execute_command ("config set managed_service_info true" )
You can’t perform that action at this time.
0 commit comments