SUPPORT-8591: commit after checking
This commit is contained in:
parent
986aa01830
commit
b0e1872e72
1 changed files with 1 additions and 1 deletions
|
|
@ -66,10 +66,10 @@ public abstract class BaseReplyingKafkaService<T, V> implements ReplyingKafkaSer
|
|||
|
||||
if (match) {
|
||||
responseRef.set(consumerRecord.value());
|
||||
consumer.commitSync();
|
||||
break;
|
||||
}
|
||||
}
|
||||
consumer.commitSync();
|
||||
}
|
||||
return Optional.ofNullable(responseRef.get())
|
||||
.orElseThrow(() -> new RuntimeException("Kafka return result is null"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue