question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorry if this is obvious, but when the pulsar client is attempting to decompress a message what compressionType is used? Also as a consumer can I specify an individual compressionType in any way (assuming I know how the message was initially compressed)? I am running into the following error upon receiving a message:

info: PulsarLogger[0]
      consumer(1, , -1) Message 5*****9:41088:-1 was discarded due to DecompressionError
fail: PulsarLogger[0]
      consumer(1, , -1) Decompression exception 5175679:41089:-1
ComponentAce.Compression.Libs.zlib.ZStreamException: inflating:
   at ComponentAce.Compression.Libs.zlib.ZOutputStream.finish()
   at Pulsar.Client.Internal.CompressionCodec.ZLibCompression.zlib(Boolean isEncode, Int32 capacity, Byte[] bytes, Int32 payloadLength) in D:\Work\Pulsar.Client\src\Pulsar.Client\Internal\Compression .fs:line 30
   at Pulsar.Client.Internal.CompressionCodec.ZLibCompression.Pulsar-Client-Internal-ICompressionCodec-Decode(Int32 uncompressedSize, Byte[] src) in D:\Work\Pulsar.Client\src\Pulsar.Client\Internal\Compression .fs:line 35
   at Pulsar.Client.Api.ConsumerImpl`1.decompressMessage(RawMessage rawMessage, Boolean isChunked) in D:\Work\Pulsar.Client\src\Pulsar.Client\Internal\ConsumerImpl.fs:line 485
info: PulsarLogger[0]
      consumer(1, , -1) Message 5*****9:41089:-1 was discarded due to DecompressionError

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
MikeDotNettycommented, Oct 5, 2020

@Lanayx Sorry for the delayed response. HOWEVER, you bug fix did the trick! Much appreciated!

1reaction
Lanayxcommented, Oct 2, 2020

@MikeDotNetty After several hours of dancing around the zlib library I’ve managed to find the similar setup to Java, so closing the ticket. 1.7.2 is released with the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compression Definition & Meaning
The meaning of COMPRESSION is the act, process, or result of compressing. How to use compression in a sentence.
Read more >
Compression Definition & Meaning
A force that tends to shorten or squeeze something, decreasing its volume. · The degree to which a substance has decreased in size...
Read more >
Compression | Pressure, Force & Volume
Compression, decrease in volume of any object or substance resulting from applied stress. Compression may be undergone by solids, liquids, ...
Read more >
Compression
Compression (physics), size reduction due to forces ; Compression member, a structural element such as a column ; Compressibility, susceptibility to compression ......
Read more >
Compression (physics)
In mechanics, compression is the application of balanced inward ("pushing") forces to different points on a material or structure, that is, forces with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found