RequestCanceledException


#1

Can I use RequestCanceledException to adjsut the node-failure when I delibrately remove one node?

And when I remove a node , timeoutException or requestCanceledException which occurs firstly ?


#2

A RequestCancelledException is raised when an operation is in-flight (and you stop the node for example) we need to cancel it. A timeout exception happens when we can’t process your request in time. Depending on the situation (your SLA) you want to retry both. If the operation is idempotent you can safely retry, in case of a mutation you want to have some more logic in place to check the state of the server before you proceed.