@Cacheable causes ThreadLocal leak in OpenTracing
David-16 opened this issue · comments
This is to reopen #114
Please see my 12 June 2020 comment: #114 (comment)
Task List
- Steps to reproduce provided
- Stacktrace (if present) provided
- Example that reproduces the problem uploaded to Github
- Full description of the issue provided (see below)
Steps to Reproduce
See #114
Expected Behaviour
See #114
Actual Behaviour
See #114
Environment Information
- Micronaut Version: bom: 2.0.0.M3, cache: 2.0.0.M1
Example Application
See #114
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This does not reproduce with the latest Micronaut Core and Cache. Logs from the application:
16:59:12.238 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 686ms. Server Running: http://0.0.0.0:8080
16:59:35.792 [default-nioEventLoopGroup-1-2] INFO micronaut.tracing.issue.ServiceA - foo = 'zzzzzzzz'
16:59:38.215 [default-nioEventLoopGroup-1-3] INFO micronaut.tracing.issue.ServiceA - foo = 'zzzzzzzz'
16:59:39.977 [default-nioEventLoopGroup-1-4] INFO micronaut.tracing.issue.ServiceA - foo = 'zzzzzzzz'
16:59:41.306 [default-nioEventLoopGroup-1-5] INFO micronaut.tracing.issue.ServiceA - foo = 'zzzzzzzz'
16:59:53.493 [default-nioEventLoopGroup-1-6] INFO micronaut.tracing.issue.ServiceA - foo = 'xxxxxxxx'
16:59:58.707 [default-nioEventLoopGroup-1-7] INFO micronaut.tracing.issue.ServiceA - foo = 'xxxxxxxx'
16:59:59.864 [default-nioEventLoopGroup-1-8] INFO micronaut.tracing.issue.ServiceA - foo = 'xxxxxxxx'
17:00:00.853 [default-nioEventLoopGroup-1-9] INFO micronaut.tracing.issue.ServiceA - foo = 'xxxxxxxx'
17:00:18.429 [default-nioEventLoopGroup-1-10] INFO micronaut.tracing.issue.ServiceA - foo = 'aaaaaaaa'
17:00:19.900 [default-nioEventLoopGroup-1-11] INFO micronaut.tracing.issue.ServiceA - foo = 'aaaaaaaa'
17:00:20.905 [default-nioEventLoopGroup-1-12] INFO micronaut.tracing.issue.ServiceA - foo = 'aaaaaaaa'
17:00:21.893 [default-nioEventLoopGroup-1-13] INFO micronaut.tracing.issue.ServiceA - foo = 'aaaaaaaa'
Here is a patch that can be applied to https://github.com/David-16/micronaut-issues/tree/master/tracing-issue-3: