Skip to content

Conversation

@etschannen
Copy link
Contributor

No description provided.

…prove the reliability of the kill process

secondaryAddresses are included in the list of processes which can be killed
@etschannen
Copy link
Contributor Author

This closes #2209

Key full_ip_port2 = StringRef(workerInterf.reboot.getEndpoint().addresses.secondaryAddress.get().toString());
StringRef ip_port2 = full_ip_port2.endsWith(LiteralStringRef(":tls")) ? full_ip_port2.removeSuffix(LiteralStringRef(":tls")) : full_ip_port2;
(*address_interface)[ip_port2] = std::make_pair(kv.value, leaderInterf);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bit is new, is it necessary to issue kills to both interfaces? Is this going to print duplicates in our list?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't be necessary to issue kills to both interfaces, but we want to allow people to issue kills to either interface. I've found that it's hard to predict which interface is going to appear in the kill list today.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that's a good point.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we happen to issue kills to the same process twice because of this, is it possible that the process gets killed twice, or is there something that protects us from that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once a worker is killed, it will come back with a different interface, so it is safe to send multiple kills.

Co-Authored-By: A.J. Beamon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants