You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FAB-4155] Make deliveryClient failover on 503 error
This change set addresses the client-side of the peer <---> orderer
connection in spite of internal errors in the ordering service, namely
kafka connection issues.
This commit:
- Exposes a method of the DeliveryClient - Disconnect()
that makes the client re-connect to some ordering service node
(can be the same one, it is randomly chosen)
- Adds logic in the blocks provider to invoke Disconnect()
upon a reception of ServiceUnavailable(503) status from the orderer node
- Fixes a small bug - the seeding of time was missing from the connection
producer and as a result it was always chosing orderer endpoints
deterministically.
Change-Id: I949453237c88cb27f9a4fa96f7acd81974f29712
Signed-off-by: Yacov Manevich <[email protected]>
0 commit comments