I'm using kafka vs redis in my project.
i am using kafka, i get message from it process and save to redis, but it is giving error like below.this error message occurs when my code runs after some time my code
io.smallrye.mutiny.TimeoutException at io.smallrye.mutiny.operators.uni.UniBlockingAwait.await(UniBlockingAwait.java:64) at io.smallrye.mutiny.groups.UniAwait.atMost(UniAwait.java:65) at io.quarkus.redis.client.runtime.RedisClientImpl.await(RedisClientImpl.java:1046) at io.quarkus.redis.client.runtime.RedisClientImpl.set(RedisClientImpl.java:687) at worker.redis.process.implementation.ProductImplementation.refresh(ProductImplementation.java:34) at worker.redis.Worker.refresh(Worker.java:51) at kafka.InComingProductKafkaConsume.lambda$consume$0(InComingProductKafkaConsume.java:38) at business.core.hpithead.ThreadStart.doRun(ThreadStart.java:34) at business.core.hpithead.core.NotifyingThread.run(NotifyingThread.java:27) at java.base/java.lang.Thread.run(Thread.java:833)
The record 51761 from topic-partition 'mer-outgoing-master-item-0' has waited for 153 seconds to be acknowledged. This waiting time is greater than the configured threshold (150000 ms). At the moment 2 messages from this partition are awaiting acknowledgement. The last committed offset for this partition was 51760. This error is due to a potential issue in the application which does not acknowledged the records in a timely fashion. The connector cannot commit as a record processing has not completed.
@Incoming("mer_product") @Blocking public CompletionStage<Void> consume2(Message<String> payload) { var objectDto = configThreadLocal.mapper.readValue(payload.getPayload(), new TypeReference<KafkaPayload<ItemKO>>(){}); worker.refresh(objectDto.payload.castDto()); return payload.ack(); }
*please ignore ObjectMapper exceptions, I have handled it
someone please help me find the cause, thanks