liangyepianzhou commented on code in PR #21070:
URL: https://github.com/apache/pulsar/pull/21070#discussion_r1306753231


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java:
##########
@@ -1433,7 +1433,17 @@ private ByteBuf processMessageChunk(ByteBuf 
compressedPayload, MessageMetadata m
 
         ChunkedMessageCtx chunkedMsgCtx = 
chunkedMessagesMap.get(msgMetadata.getUuid());
 
-        if (msgMetadata.getChunkId() == 0 && chunkedMsgCtx == null) {
+        if (msgMetadata.getChunkId() == 0) {

Review Comment:
   If the producer crashes and restarts, then send the previous message with 
`producer.newMessage.send()` API.
   The message should be identified as a new message with a different uuid. See 
the solution at https://github.com/apache/pulsar/pull/20948.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to