-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
嵌入Thread调用的bug #70
Comments
@aftersss 收到,我看看 |
oldratlee
added a commit
that referenced
this issue
Nov 14, 2016
oldratlee
added a commit
that referenced
this issue
Nov 14, 2016
@aftersss 修复在进行中。转成了复现问题的UT,参见提交: bbd4f9e 如果急着解决,先给一个bypass的方法: new Thread(){
public void run(){
// 这里补一行 get
tl1.get();
TtlRunnable runnable = TtlRunnable.get(new Runnable() {
@Override
public void run() {
System.out.println("pool tl1-2:"+tl1.get());
}
},false,false);
executorService.submit(runnable);
}
}.start(); |
问题已经修复,参见 提交 发布了版本 <dependency>
<groupId>com.alibaba</groupId>
<artifactId>transmittable-thread-local</artifactId>
<version>2.1.0</version>
</dependency> @aftersss 非常赞 👍 嵌套 非常感谢你的问题反馈!! |
OK,谢谢 |
@aftersss 问一下你在什么场景/需求下使用ttl,哪个公司/项目。收集了解一下用户 :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
运行以下代码:
输出:
第二行不应该为
null
,改成使用InheritableThreadLocal
是正常的。The text was updated successfully, but these errors were encountered: