Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make agent reconnect in case of connection dropping (#3342)
* feat: make agent reconnect in case of connection dropping * fix panic * fix(agent): use mutex for reconnecting client * fix tests * remove log * fix reconnection logic * add retry-go * ignore EOF errors * set max retries to 3 in grpc server mock * fix: reconnection logic * remove unused method * PR patches * fix build
- Loading branch information
1 parent
d2abf0e
commit 3c24e6e
Showing
18 changed files
with
219 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package client | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/kubeshop/tracetest/agent/proto" | ||
) | ||
|
||
func triggerListener(_ context.Context, _ *proto.TriggerRequest) error { | ||
return nil | ||
} | ||
|
||
func pollListener(_ context.Context, _ *proto.PollingRequest) error { | ||
return nil | ||
} | ||
|
||
func shutdownListener(_ context.Context, _ *proto.ShutdownRequest) error { | ||
return nil | ||
} | ||
|
||
func dataStoreConnectionListener(_ context.Context, _ *proto.DataStoreConnectionTestRequest) error { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.