grpc_get_failed_sessionid- Get session ID that failed for calls.
grpc_error_t grpc_get_failed_sessionid(grpc_sessionid_t *idPtr)
The grpc_get_failed_sessionid() function returns the session ID associated with the most recent GRPC_SESSION_FAILED error. This provides additional error information on a specific session ID that failed for calls that deal with sets of session IDs, either implicitly, such as grpc_wait_all(), or explicitly, such as grpc_wait_and().
When there are more than two failed sessions, this function will return the session ID one by one. To make sure that all the failed sessions are handled, users have to call this function repeatedly until it returns GRPC_SESSIONID_VOID.
This function is MT-safe.