Thomas MacKenzie
08/08/2025, 11:47 PMReconsumerLaterWithCustomProperties() to send to RLQ (different topic)
• Nack() the retries
• Send the message to the DLQ, still using Nack() built-in consumer method
The issue is very inconsistent (we don't have a lot of errors in the system), but I noticed a few instances so far. One had 25 retries (instead of 10)
Investigation:
• I looked at the broker config, was aware there is a limit of producer count for the dedup, but we are well under 10,000 per broker.
pulsar-broker-3:/pulsar$ cat conf/broker.conf | grep brokerDedup
brokerDeduplicationEnabled=true
brokerDeduplicationMaxNumberOfProducers=10000
brokerDeduplicationSnapshotFrequencyInSeconds=120
# It will run simultaneously with `brokerDeduplicationEntriesInterval`
brokerDeduplicationSnapshotIntervalSeconds=120
brokerDeduplicationEntriesInterval=1000
brokerDeduplicationProducerInactivityTimeoutMinutes=360
So my question is: is there anything that lead to RLQ messages duplicates in the system? I looked at our implementation and don't see anything suspicious so far but wanted to ask in case it's a know issue or if there something I should look into specifically.
Pulsar 4.0.5 / Go client 0.16.0 but issue was also present in prior version
Thank youThomas MacKenzie
08/09/2025, 1:42 PMpulsar-broker-5:/pulsar$ cat conf/broker.conf | grep acknowledgmentAtBatchIndexLevelEnabled -B1
# Whether to enable acknowledge of batch local index.
acknowledgmentAtBatchIndexLevelEnabled=false
Our client (we don't have it enabled)
https://github.com/apache/pulsar-client-go/blob/master/pulsar/consumer.go#L248-L250Thomas MacKenzie
08/11/2025, 4:39 PMEnableBatchIndexAcknowledgment enabled, should the batch index set as well?
https://github.com/apache/pulsar-client-go/blob/master/pulsar/negative_acks_tracker.go#L74Thomas MacKenzie
08/12/2025, 5:19 PM4.0.6 and the last commit from master in the Go client, as well as acknowledgmentAtBatchIndexLevelEnabled set to true.
I'll keep investigating in case I find anything related to Pulsar or the clientThomas MacKenzie
08/12/2025, 7:57 PMThomas MacKenzie
08/13/2025, 4:29 AMReconsumeLaterWithCustomProperties() so that messages get republished to the RLQ/DLQ and used the core property RECONSUMETIMES updated on the message as the delivery count value (persistent basically)