Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pulsar/consumer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,12 @@ func (pc *partitionConsumer) Decompress(msgMeta *pb.MessageMetadata, payload int

uncompressed, err := provider.Decompress(nil, payload.ReadableSlice(), int(msgMeta.GetUncompressedSize()))
if err != nil {
return nil, err
return nil, fmt.Errorf("failed to decompress message: %w, compression type: %d, payload size: %d, "+
"uncompressed size: %d",
err,
msgMeta.GetCompression(),
len(payload.ReadableSlice()),
msgMeta.GetUncompressedSize())
}

return internal.NewBufferWrapper(uncompressed), nil
Expand Down
Loading