diff options
author | Toine Siebelink <toine.siebelink@est.tech> | 2024-02-06 11:53:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-02-06 11:53:52 +0000 |
commit | 627e9cb5f6bf7ea66bba15a376bbbfc134e588d9 (patch) | |
tree | fa21a083b95baec0a0c4ccec4573ada231aff56c /cps-ncmp-service | |
parent | 91a8ece36962ac1f6f31615bbd05e615e0e9c773 (diff) | |
parent | c109ebec4a58f65d0532ca052835e993c4a1273a (diff) |
Merge "[BUG] Retry interval for kafka consumer"
Diffstat (limited to 'cps-ncmp-service')
-rw-r--r-- | cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/kafka/KafkaConfig.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/kafka/KafkaConfig.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/kafka/KafkaConfig.java index 514967574f..4f2674aca3 100644 --- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/kafka/KafkaConfig.java +++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/config/kafka/KafkaConfig.java @@ -21,6 +21,7 @@ package org.onap.cps.ncmp.api.impl.config.kafka; import io.cloudevents.CloudEvent; +import java.time.Duration; import java.util.Map; import lombok.RequiredArgsConstructor; import org.apache.kafka.clients.producer.ProducerConfig; @@ -99,6 +100,7 @@ public class KafkaConfig<T> { final ConcurrentKafkaListenerContainerFactory<String, T> containerFactory = new ConcurrentKafkaListenerContainerFactory<>(); containerFactory.setConsumerFactory(legacyEventConsumerFactory()); + containerFactory.getContainerProperties().setAuthExceptionRetryInterval(Duration.ofSeconds(10)); return containerFactory; } @@ -150,6 +152,7 @@ public class KafkaConfig<T> { final ConcurrentKafkaListenerContainerFactory<String, CloudEvent> containerFactory = new ConcurrentKafkaListenerContainerFactory<>(); containerFactory.setConsumerFactory(cloudEventConsumerFactory()); + containerFactory.getContainerProperties().setAuthExceptionRetryInterval(Duration.ofSeconds(10)); return containerFactory; } |