cckellogg commented on a change in pull request #98: Implemented decompression 
on consumer side
URL: https://github.com/apache/pulsar-client-go/pull/98#discussion_r346136206
 
 

 ##########
 File path: pulsar/consumer_partition.go
 ##########
 @@ -220,10 +230,19 @@ func (pc *partitionConsumer) MessageReceived(response 
*pb.CommandMessage, header
        reader := internal.NewMessageReader(headersAndPayload)
        msgMeta, err := reader.ReadMessageMetadata()
        if err != nil {
-               // TODO send discardCorruptedMessage
+               pc.discardCorruptedMessage(pbMsgID, 
pb.CommandAck_ChecksumMismatch)
                return err
        }
 
+       uncompressedHeadersAndPayload, err := pc.Decompress(msgMeta, 
headersAndPayload)
 
 Review comment:
   is there a way to implement this logic in the message reader?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to