Add sequence tracking number when seqTracking is enabled in producer

This commit is contained in:
Massimiliano Mirelli 2023-03-07 14:09:34 +02:00
parent b333898249
commit 971c5d3c6f

View File

@ -135,7 +135,7 @@ public class MessageProducerOp extends PulsarClientOp {
}
// set message properties
if ( !msgPropRawJsonStr.isEmpty() ) {
if (!StringUtils.isBlank(msgPropRawJsonStr) || seqTracking) {
typedMessageBuilder = typedMessageBuilder.properties(msgProperties);
}