RobertIndie commented on issue #1063: URL: https://github.com/apache/pulsar-client-go/issues/1063#issuecomment-1655257915
Hi @gunli > if the last chunk is sent and some other ones are pending I don't think that would happen. The message order in a single topic producer is guaranteed. If the last chunk is sent successfully, then other ones must be sent. For instance, if we have a large message with 3 chunks(M0 to M2). We have sent M0. But M1 and M2 are pending. If we fail them, then the whole large message is failed to send. This behavior is safe because the consumer will skip this corrupt message. But it will never be the case that, for example, M2 sends successfully but M1, and M0 fail. > And at the server side, will that be a question if only some chunks are received? The broker will only treat the chunk as a normal message. And the consumer will skip these chunks if it couldn't get the last chunk of the message. For more about how chunking works, you could check this blog: https://streamnative.io/blog/deep-dive-into-message-chunking-in-pulsar#best-practices-for-message-chunking -- 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]
