Skip to content

Commit

Permalink
Adjust the layout of comment for create sarama config.
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Nov 6, 2021
1 parent c7365ba commit 31e5caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cdc/sink/producer/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,9 @@ func newSaramaConfig(ctx context.Context, c *Config) (*sarama.Config, error) {
}
config.Version = version
// See: https://kafka.apache.org/documentation/#replication
// When one of the brokers in a Kafka cluster is down, the partition leaders in this broker is broken, Kafka will election a new partition leader and replication logs, this process will last from a few seconds to a few minutes. Kafka cluster will not provide a writing service in this process.
// When one of the brokers in a Kafka cluster is down, the partition leaders in this broker is broken,
// Kafka will election a new partition leader and replication logs, this process will last from a few seconds to a few minutes.
// Kafka cluster will not provide a writing service in this process.
// Time out in one minute(120 * 500ms).
config.Metadata.Retry.Max = 120
config.Metadata.Retry.Backoff = 500 * time.Millisecond
Expand Down

0 comments on commit 31e5caf

Please sign in to comment.