rdhabalia opened a new issue, #23233:
URL: https://github.com/apache/pulsar/issues/23233

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Read release policy
   
   - [X] I understand that unsupported versions don't get bug fixes. I will 
attempt to reproduce the issue on a supported version of Pulsar client and 
Pulsar broker.
   
   
   ### Version
   
   > 1.x
   
   ### Minimal reproduce step
   
   1. Publish encrypted and compressed message
   2. Try to peek the same message to find various metadata of the published 
message such as publish-time, encryption-keys
   
   ```
   ./bin/pulsar-admin topics peek-message persistent://tenant1/ns1/t1  -s test
   :
   --- An unexpected error occurred in the server ---
   
   Message: offset outside destination buffer: offset=10
   
   Stacktrace:
   
   io.airlift.compress.MalformedInputException: offset outside destination 
buffer: offset=10
        at 
io.airlift.compress.lz4.Lz4RawDecompressor.decompress(Lz4RawDecompressor.java:112)
        at 
io.airlift.compress.lz4.Lz4Decompressor.decompress(Lz4Decompressor.java:93)
        at 
org.apache.pulsar.common.compression.CompressionCodecLZ4.decode(CompressionCodecLZ4.java:98)
        at 
org.apache.pulsar.broker.admin.impl.PersistentTopicsBase.generateResponseWithEntry(PersistentTopicsBase.java:2927)
        at 
org.apache.pulsar.broker.admin.impl.PersistentTopicsBase.internalPeekNthMessage(PersistentTopicsBase.java:2740)
        at 
org.apache.pulsar.broker.admin.v1.PersistentTopics.peekNthMessage(PersistentTopics.java:707)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   
   ```
   
   ### What did you expect to see?
   
   It should return the message with metadata for message debugging
   
   ### What did you see instead?
   
   Receiving 5xx parsing error
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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