Skip to content

Commit

Permalink
increase sink retry
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Feb 24, 2024
1 parent 0161c15 commit 6b522f2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/connector/src/sink/kinesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

use std::collections::HashMap;
use std::time::Duration;

use anyhow::anyhow;
use aws_sdk_kinesis::error::DisplayErrorContext;
Expand Down Expand Up @@ -189,7 +190,10 @@ impl KinesisSinkPayloadWriter {
let payload = Blob::new(payload);
// todo: switch to put_records() for batching
Retry::spawn(
ExponentialBackoff::from_millis(100).map(jitter).take(3),
ExponentialBackoff::from_millis(100)
.max_delay(Duration::from_secs(1))
.map(jitter)
.take(60),
|| async {
self.client
.put_record()
Expand Down

0 comments on commit 6b522f2

Please sign in to comment.