You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "kevinWangSheng (via GitHub)" <gi...@apache.org> on 2024/09/19 02:50:14 UTC

[D] Does the thread would reuse when one thread occur the IO block? [pulsar]

GitHub user kevinWangSheng created a discussion: Does the thread would reuse when one thread occur the IO block?

background: when I consume the message ,I use a TTL threadlocal to store a thread variable, and when the consumer  consume the message , it will do some DB operator and use spring feign to request another interface.  And begin the consume, I remove the TTL ThreadLocal value, and reset a new value in it.

problem: I through the log find that: a message be consume and call the DB operator, the value of TTL threadlocal was be changed.


Does have any one to help me to find the answer?


GitHub link: https://github.com/apache/pulsar/discussions/23316

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org