Skip to content

Commit 4b14240

Browse files
authored
Merge pull request #11 from Saicasm/dev
hotfix: auto commit false
2 parents 23dafed + bd865f5 commit 4b14240

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

search-details/src/main/java/io/spring/searchsp/kafka/KafkaConsumer.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ public class KafkaConsumer {
1313

1414
private final BlockingQueue<List<MusicTrack>> responseQueue = new LinkedBlockingQueue<>();
1515

16-
@KafkaListener(topics = "final-recommendation", groupId = "client-group")
16+
@KafkaListener(topics = "final-recommendation",
17+
properties = {"enable.auto.commit:false", "auto.offset.reset:latest"},
18+
groupId = "client-group")
1719
public void listen(@Payload List<MusicTrack> message ) {
1820
responseQueue.offer(message);
1921
}

0 commit comments

Comments
 (0)