storage_service: Add extra check in notify_joined

Do not send node joined event if node is not in NORMAL status which
means the node has joined the cluster officially.
This commit is contained in:
Asias He
2018-12-06 09:07:02 +08:00
parent 9abb15192f
commit 17d68cb408

View File

@@ -3291,6 +3291,10 @@ void storage_service::notify_up(inet_address endpoint)
void storage_service::notify_joined(inet_address endpoint)
{
if (!gms::get_local_gossiper().is_normal(endpoint)) {
return;
}
get_storage_service().invoke_on_all([endpoint] (auto&& ss) {
for (auto&& subscriber : ss._lifecycle_subscribers) {
try {