apache / apache/pulsar-client-node
Consumer.acknowledge() not registered in client
- Lingua principale
- C++
- Stelle
- 164
- Fork
- 98
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
After receiving a message, our script makes an API call through axios to process the pulsar message. consumer.receive() and the processing logic runs in a while loop until receive() times out when the queue is empty.
It appears if we run acknowledge() prior to the API call, the client behaves correctly, that is messages are acked and receive does not receive any more messages once all messages are acked.
But running ack after the API call, the desired way to ack the message, it seems as receive() goes in a loop and keeps receiving messages already acked. However if we quit the script and re-run it, the queue is indeed empty and no messages are received, similarly peaking the messages through pulsar-admin for the given topic-partition while the script is running confirm messages are acked.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia riproducendo il ciclo while usando consumer.receive() e acknowledge() attorno alla chiamata di elaborazione di axios, confrontando l’acknowledgement prima e dopo la richiesta API. Verifica se receive() restituisce messaggi già acknowledged fino al suo timeout e usa pulsar-admin per confrontare lo stato della partizione del topic mentre il client è in esecuzione. Il lavoro è completato quando gli acknowledgement dopo l’elaborazione impediscono la consegna successiva di quei messaggi senza richiedere il riavvio del client.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- distributed-systems
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100