GitHub user leizhiyuan added a comment to the discussion: sometimes broker send messages to consumer,but consumer can not receive
``` Future<Void> writeAndFlushPromise = cnx.getCommandSender().sendMessagesToConsumer(consumerId, topicName, subscription, partitionIdx, entries, batchSizes, batchIndexesAcks, redeliveryTracker, epoch); writeAndFlushPromise.addListener(status -> { // only increment counters after the messages have been successfully written to the TCP/IP connection if (status.isSuccess()) { msgOut.recordMultipleEvents(totalMessages, totalBytes); msgOutCounter.add(totalMessages); bytesOutCounter.add(totalBytes); chunkedMessageRate.recordMultipleEvents(totalChunkedMessages, 0); } }); ``` maybe this write fail GitHub link: https://github.com/apache/pulsar/discussions/18377#discussioncomment-4083271 ---- This is an automatically sent email for dev@pulsar.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@pulsar.apache.org