Replies: 5 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
Are you using the semi-new If unsure, you can test by calling current() twice in a row and seeing if they are the same. If they aren't there a storage override is being used. Or you can run under a debugger and see what |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
Hi @ejona86! I'm facing a similar issue, but I'm not using any storage overrides like For some reason, when Context.current() is called multiple times in one environment, it is a different result every time. Environment 1
Environment 2
Any idea why this would be happening? Any tips to mitigate would be appreciated! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my GRPC server Context.current().toString() returns a different value everytime it is called even with in the same function for a single request.
Based on https://grpc.github.io/grpc-java/javadoc/io/grpc/Context.html wouldn't it remain the same for the lifetime of the request. I'm not forking the context or creating a new context within the life time of the request. But everytime I call Context.current().toString() I get a different value. Can anyone let me know what is the scenario where this is observed?
Beta Was this translation helpful? Give feedback.
All reactions