You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to propagate a local thread variable from an user of SqsAsyncClient, which returns an asynchronous CompletableFuture.
So far, I have explored two possible configurations of executors. Still, these executors seem to be invoked directly from the thread of Netty’s Event Loop Model, rather than from the user's thread of SqsAsyncClient.
Below, I have attached a simple example demonstrating this scenario:
In the above example, the ThreadLocalPropagationThreadFactory is invoked by the event loop model thread instead of the user's thread.
Could you please advise on how to properly propagate the local thread variable in this context (I expect that "visible log in the thread" will be logged in the console log)?
This question is closely linked to the following issue
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I am trying to propagate a local thread variable from an user of
SqsAsyncClient
, which returns an asynchronousCompletableFuture
.So far, I have explored two possible configurations of executors. Still, these executors seem to be invoked directly from the thread of Netty’s Event Loop Model, rather than from the user's thread of
SqsAsyncClient
.Below, I have attached a simple example demonstrating this scenario:
In the above example, the
ThreadLocalPropagationThreadFactory
is invoked by the event loop model thread instead of the user's thread.Could you please advise on how to properly propagate the local thread variable in this context (I expect that "visible log in the thread" will be logged in the console log)?
This question is closely linked to the following issue
Beta Was this translation helpful? Give feedback.
All reactions