Does the thread would reuse when one thread occur the IO block? #23316
Unanswered
kevinWangSheng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions