-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Improve the reliability of the kills from fdbcli #2512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…prove the reliability of the kill process secondaryAddresses are included in the list of processes which can be killed
|
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); | ||
| } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]>
No description provided.