# Retrying GCS sink connector if GCS is down

**URL:** https://ask.lenses.io/t/retrying-gcs-sink-connector-if-gcs-is-down/398
**Category:** Apache Kafka Connectors
**Created:** [July 14, 2025, 8:48am UTC](https://ask.lenses.io/t/retrying-gcs-sink-connector-if-gcs-is-down/398 "2025-07-14T08:48:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Andrew\_Stevenson](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/andrew_stevenson/32/80_2.png) [@Andrew\_Stevenson](https://ask.lenses.io/u/Andrew_Stevenson)
#### Post date: [July 14, 2025, 8:48am UTC](https://ask.lenses.io/t/retrying-gcs-sink-connector-if-gcs-is-down/398/1 "2025-07-14T08:48:21Z")

</div>

We want Kafka Connect GCS connector to stop processing when GCS is down and resume from the same offset when GCS becomes available again, how can we set achieve that?

---

<div class="post-metadata">

### Author: ![Andrew\_Stevenson](https://dub1.discourse-cdn.com/flex017/user_avatar/ask.lenses.io/andrew_stevenson/32/80_2.png) [@Andrew\_Stevenson](https://ask.lenses.io/u/Andrew_Stevenson)
#### Post date: [July 14, 2025, 8:48am UTC](https://ask.lenses.io/t/retrying-gcs-sink-connector-if-gcs-is-down/398/2 "2025-07-14T08:48:35Z")

</div>

Hi,

The GCS connector has a retry mechanism inside the connector plugin. This will control how many times the connector itself tries to upload files. If exhausted the connector will error and stop.

[GCP Storage | Lenses Docs](https://docs.lenses.io/latest/connectors/kafka-connectors/sinks/gcp-storage#connector-properties)

connect.gcpstorage.retry.interval - Specifies the interval (in milliseconds) between retry attempts by the connector.

connect.gcpstorage.http.max.retries - Sets the maximum number of retries for the underlying HTTP client when interacting with GCP.

connect.gcpstorage.http.retry.interval - Specifies the retry interval (in milliseconds) for the underlying HTTP client.

connect.gcpstorage.http.retry.timeout.multiplier - Specifies the change in delay before the next retry or poll

In Addition, the Connector support error policies, which trigger a redeliver of messages to the plugin if a Retryable exception is thrown. [Using Error Policies | Lenses Docs](https://docs.lenses.io/latest/connectors/tutorials/using-error-policies)

And the Kafka Connect framework now has builtin retry policies. [Kafka Connect Deep Dive – Error Handling and Dead Letter Queues | Confluent](https://www.confluent.io/blog/kafka-connect-deep-dive-error-handling-dead-letter-queues/)

So you can tweak the connector configuration for retrying for transistent network errors, set a retry policy on the whole connector (e.g. THROW and stop on error, RETRY or NO OP) and set error handling provided by the framework.

Regards,

Andrew
