Skip to content

Commit

Permalink
Updating chitchat (#5505)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton authored Oct 22, 2024
1 parent 5e5b360 commit a49f5c4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions quickwit/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion quickwit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ base64 = "0.22"
bytes = { version = "1", features = ["serde"] }
bytesize = { version = "1.3.0", features = ["serde"] }
bytestring = "1.3.0"
chitchat = { git = "https://github.com/quickwit-oss/chitchat.git", rev = "d039699" }
chitchat = { git = "https://github.com/quickwit-oss/chitchat.git", rev = "54cbc70" }
chrono = { version = "0.4", default-features = false, features = [
"clock",
"std",
Expand Down
15 changes: 6 additions & 9 deletions quickwit/quickwit-cluster/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,9 @@ mod tests {

let self_node_state = cluster_snapshot
.chitchat_state_snapshot
.node_state_snapshots
.node_states
.into_iter()
.find(|node_state_snapshot| node_state_snapshot.chitchat_id == node.self_chitchat_id)
.map(|node_state_snapshot| node_state_snapshot.node_state)
.find(|node_state| node_state.chitchat_id() == &node.self_chitchat_id)
.unwrap();
assert_eq!(
self_node_state.get(READINESS_KEY).unwrap(),
Expand All @@ -800,10 +799,9 @@ mod tests {

let self_node_state = cluster_snapshot
.chitchat_state_snapshot
.node_state_snapshots
.node_states
.into_iter()
.find(|node_state_snapshot| node_state_snapshot.chitchat_id == node.self_chitchat_id)
.map(|node_state_snapshot| node_state_snapshot.node_state)
.find(|node_state| node_state.chitchat_id() == &node.self_chitchat_id)
.unwrap();
assert_eq!(
self_node_state.get(READINESS_KEY).unwrap(),
Expand All @@ -821,10 +819,9 @@ mod tests {

let self_node_state = cluster_snapshot
.chitchat_state_snapshot
.node_state_snapshots
.node_states
.into_iter()
.find(|node_state_snapshot| node_state_snapshot.chitchat_id == node.self_chitchat_id)
.map(|node_state_snapshot| node_state_snapshot.node_state)
.find(|node_state| node_state.chitchat_id() == &node.self_chitchat_id)
.unwrap();
assert_eq!(
self_node_state.get(READINESS_KEY).unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-serve/src/developer_api/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl DeveloperService for DeveloperApiServer {
"ready_nodes": cluster_snapshot.ready_nodes,
"live_nodes": cluster_snapshot.live_nodes,
"dead_nodes": cluster_snapshot.dead_nodes,
"chitchat_state": cluster_snapshot.chitchat_state_snapshot.node_state_snapshots,
"chitchat_state": cluster_snapshot.chitchat_state_snapshot.node_states,
})
});
if let Some(control_plane_mailbox) = &self.control_plane_mailbox_opt {
Expand Down

0 comments on commit a49f5c4

Please sign in to comment.