Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #1273: Deal with unavailable Kafka broker in KafkaPublisherActor.
Until now a Ditto Kafka connection with targets only did not cope properly with the Kafka broker becoming unavailable. In such cases, publishing timed out and produced appropriate entries in connection log. Connection live status however, remained always 'open'. With this commit, a TimeoutException while publishing is handled in a way that a ConnectionFailure is propagated to parent BaseClientActor. This sets connection live status to 'misconfigured' and triggers reconnect with back-off semantic. Thus, a potentially unavailable Kafka broker gets appropriately reflected by connection status. Signed-off-by: Juergen Fickel <juergen.fickel@bosch.io>
- Loading branch information
Juergen Fickel
committed
Jan 18, 2022
1 parent
f2e7648
commit fc7a047
Showing
2 changed files
with
16 additions
and
1 deletion.
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