Skip to content

Commit d64eae3

Browse files
committed
Clean up terminated shards before expiry (close #222)
1 parent 06ebd78 commit d64eae3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/main/scala/com.snowplowanalytics.stream/loader/executors/KinesisSourceExecutor.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ class KinesisSourceExecutor[A, B](
7575
.withCallProcessRecordsEvenForEmptyRecordList(
7676
KinesisConnectorConfiguration.DEFAULT_CALL_PROCESS_RECORDS_EVEN_FOR_EMPTY_LIST
7777
)
78-
.withCleanupLeasesUponShardCompletion(kcc.CLEANUP_TERMINATED_SHARDS_BEFORE_EXPIRY)
78+
.withCleanupLeasesUponShardCompletion(
79+
KinesisClientLibConfiguration.DEFAULT_CLEANUP_LEASES_UPON_SHARDS_COMPLETION
80+
)
7981
.withParentShardPollIntervalMillis(kcc.PARENT_SHARD_POLL_INTERVAL)
8082
.withShardSyncIntervalMillis(kcc.SHARD_SYNC_INTERVAL)
8183
.withTaskBackoffTimeMillis(kcc.BACKOFF_INTERVAL)

0 commit comments

Comments
 (0)