awslabs / amazon-kinesis-client

Client library for Amazon Kinesis
Apache License 2.0
642 stars 465 forks source link

Log exceptions for dynamically added streams with misaligned regions, rather than allowing them to propagate #1326

Open furq-aws opened 5 months ago

furq-aws commented 5 months ago

Issue #, if available: N/A.

Description of changes: When dynamically adding a stream to an application at runtime with a region that does not align with that of the Kinesis client, log the exception and emit a metric, instead of allowing the exception to propagate and bypass stream syncing logic. Streams with mismatching regions specified during the construction of the Scheduler will continue to fast-fail.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.