rollback to stable version (#38)

This commit is contained in:
Anatoly Karlov 2022-04-04 15:10:55 +07:00 committed by GitHub
parent 78a270da8e
commit 917cb0a887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -62,6 +62,11 @@
</dependency>
<!--Thrirdparty libs-->
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>

View File

@ -1,6 +1,6 @@
package dev.vality.newway.config;
import dev.vality.kafka.common.util.ExponentialBackOffDefaultErrorHandlerFactory;
import dev.vality.kafka.common.exception.handler.SeekToCurrentWithSleepBatchErrorHandler;
import dev.vality.machinegun.eventsink.MachineEvent;
import dev.vality.newway.config.properties.KafkaConsumerProperties;
import dev.vality.newway.config.properties.KafkaSslProperties;
@ -179,7 +179,7 @@ public class KafkaConfig {
factory.setConsumerFactory(consumerFactory);
factory.setBatchListener(true);
factory.getContainerProperties().setAckMode(ContainerProperties.AckMode.MANUAL);
factory.setCommonErrorHandler(ExponentialBackOffDefaultErrorHandlerFactory.create());
factory.setBatchErrorHandler(new SeekToCurrentWithSleepBatchErrorHandler());
factory.setConcurrency(threadsNumber);
}
}