Skip to content

Commit

Permalink
Remove seed resolution validation (#4688)
Browse files Browse the repository at this point in the history
* Remove seed resolution validation

* Add extra warning when failing to resolve all seeds
  • Loading branch information
rdettai authored Mar 7, 2024
1 parent 5783cc7 commit cd96a3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
5 changes: 1 addition & 4 deletions quickwit/quickwit-config/src/node_config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,7 @@ impl NodeConfig {
peer_seed_addrs.push(peer_seed_addr.to_string())
}
if !self.peer_seeds.is_empty() && peer_seed_addrs.is_empty() {
bail!(
"failed to resolve any of the peer seed addresses: `{}`",
self.peer_seeds.join(", ")
)
warn!("failed to resolve all the peer seed addresses")
}
Ok(peer_seed_addrs)
}
Expand Down
10 changes: 0 additions & 10 deletions quickwit/quickwit-config/src/node_config/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,16 +863,6 @@ mod tests {
.unwrap();
assert!(node_config.peer_seed_addrs().await.unwrap().is_empty());
}
{
let node_config = NodeConfigBuilder {
peer_seeds: ConfigValue::for_test(List(vec!["unresolvable-host".to_string()])),
..Default::default()
}
.build_and_validate(&HashMap::new())
.await
.unwrap();
assert!(node_config.peer_seed_addrs().await.is_err());
}
{
let node_config = NodeConfigBuilder {
rest_config_builder: RestConfigBuilder {
Expand Down

0 comments on commit cd96a3c

Please sign in to comment.