mirror of
https://github.com/valitydev/hooker.git
synced 2024-11-06 00:05:17 +00:00
Disable updateAvailability (#147)
* Disable updateAvailability * Bump parent pom * Bump kafka common lib
This commit is contained in:
parent
28ef87522f
commit
26ced432e7
3
pom.xml
3
pom.xml
@ -13,7 +13,7 @@
|
||||
<parent>
|
||||
<groupId>com.rbkmoney</groupId>
|
||||
<artifactId>service-parent-pom</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<version>1.2.7</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
@ -103,6 +103,7 @@
|
||||
<dependency>
|
||||
<groupId>com.rbkmoney</groupId>
|
||||
<artifactId>kafka-common-lib</artifactId>
|
||||
<version>0.1.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.rbkmoney</groupId>
|
||||
|
@ -104,7 +104,6 @@ public class KafkaConfig {
|
||||
new ConcurrentKafkaListenerContainerFactory<>();
|
||||
factory.setConsumerFactory(consumerFactory);
|
||||
factory.setBatchListener(true);
|
||||
factory.getContainerProperties().setAckOnError(false);
|
||||
factory.getContainerProperties().setAckMode(ContainerProperties.AckMode.MANUAL);
|
||||
factory.setBatchErrorHandler(kafkaErrorHandler());
|
||||
factory.setConcurrency(invoicingConcurrency);
|
||||
@ -120,7 +119,6 @@ public class KafkaConfig {
|
||||
new ConcurrentKafkaListenerContainerFactory<>();
|
||||
factory.setConsumerFactory(consumerFactory);
|
||||
factory.setBatchListener(false);
|
||||
factory.getContainerProperties().setAckOnError(false);
|
||||
factory.getContainerProperties().setAckMode(ContainerProperties.AckMode.MANUAL);
|
||||
factory.setErrorHandler(new SeekToCurrentErrorHandler());
|
||||
factory.setConcurrency(customerConcurrency);
|
||||
|
@ -111,8 +111,8 @@ public class MessageProcessor<M extends Message, Q extends Queue> implements Run
|
||||
}
|
||||
|
||||
private void updateAvailability(Queue queue) {
|
||||
double rate = faultDetector.getRate(queue.getHook().getId());
|
||||
hookDao.updateAvailability(queue.getHook().getId(), rate);
|
||||
log.info("Hook {} availability has been updated to {}", queue.getHook().getId(), rate);
|
||||
//double rate = faultDetector.getRate(queue.getHook().getId());
|
||||
//hookDao.updateAvailability(queue.getHook().getId(), rate);
|
||||
//log.info("Hook {} availability has been updated to {}", queue.getHook().getId(), rate);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user