You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/10/26 10:03:32 UTC

[camel] 03/03: CAMEL-18148: fixed incorrect cache registration

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 756b3c08063e083b709b6584c8b2f63805998f67
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Oct 25 17:04:01 2022 +0200

    CAMEL-18148: fixed incorrect cache registration
---
 .../camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java b/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java
index a8e56dcf71a..605b498cd9a 100644
--- a/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java
+++ b/components/camel-kafka/src/main/java/org/apache/camel/processor/resume/kafka/SingleNodeKafkaResumeStrategy.java
@@ -149,7 +149,7 @@ public class SingleNodeKafkaResumeStrategy implements KafkaResumeStrategy {
     @Override
     public void updateLastOffset(OffsetKey<?> offsetKey, Offset<?> offset, UpdateCallBack updateCallBack) throws Exception {
         ByteBuffer keyBuffer = offsetKey.serialize();
-        ByteBuffer valueBuffer = offsetKey.serialize();
+        ByteBuffer valueBuffer = offset.serialize();
 
         try {
             writeLock.lock();