Bugfix/SK-1193 | Handle unknown error, reconnect channel #743
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new test suite for gRPC communication with simulated network conditions using Toxiproxy, and includes several enhancements and refactors in the
GrpcHandler
class to improve error handling and channel management.New Test Suite for gRPC Communication:
TestGRPCWithToxiproxy
class in.ci/tests/chaos_test.py
to test gRPC communication under various network conditions using Toxiproxy.Enhancements in
GrpcHandler
:GrpcHandler
initialization to include a new_init_channel
method and_init_stubs
method for better channel and stub management.heartbeat
,send_heartbeats
, andlisten_to_task_stream
methods to improve error visibility. [1] [2] [3]_handle_unknown_error
method to handle non-gRPC specific exceptions by attempting to reconnect and reinitialize stubs.