You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "0x4500 (via GitHub)" <gi...@apache.org> on 2024/01/30 13:56:28 UTC
Re: [I] SIGSEGV in 0.12.0 with zstd compression enabled [pulsar-client-go]
0x4500 commented on issue #1163:
URL: https://github.com/apache/pulsar-client-go/issues/1163#issuecomment-1916907487
In the zstd code, I see this comment (in `zstd_context.go`):
// Note 2 : In multi-threaded environments,
// use one different context per thread for parallel execution.
Our calling code uses multiple goroutines and will be multi-threaded at the OS level.
In v0.11 of the pulsar-client-go library, compression always occurred in the function `internalSend()`, which runs in a single goroutine (= single thread) since it is only ever called from `runEventsLoop()`.
In v0.12, compression occurs in the `internalSendAsync()` function, which runs in whatever goroutine the calling code is executing in. I think this means that the library is no longer fulfilling the requirement to use a unique zstd context per thread.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org