mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
gossip: Add error handling for GOSSIP_SHUTDOWN and GOSSIP_DIGEST_ACK verb
This commit is contained in:
@@ -211,7 +211,9 @@ void gossiper::init_messaging_service_handler() {
|
||||
gossiper.set_last_processed_message_at();
|
||||
// TODO: Implement processing of incoming SHUTDOWN message
|
||||
get_local_failure_detector().force_conviction(from);
|
||||
}).discard_result();
|
||||
}).handle_exception([] (auto ep) {
|
||||
logger.error("Fail to handle GOSSIP_SHUTDOWN: {}", ep);
|
||||
});
|
||||
return messaging_service::no_wait();
|
||||
});
|
||||
ms().register_gossip_digest_syn([] (gossip_digest_syn syn_msg) {
|
||||
@@ -228,7 +230,9 @@ void gossiper::init_messaging_service_handler() {
|
||||
/* Notify the Failure Detector */
|
||||
gossiper.notify_failure_detector(remote_ep_state_map);
|
||||
return gossiper.apply_state_locally(remote_ep_state_map);
|
||||
}).discard_result();
|
||||
}).handle_exception([] (auto ep) {
|
||||
logger.error("Fail to handle GOSSIP_DIGEST_ACK: {}", ep);
|
||||
});
|
||||
return messaging_service::no_wait();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user