Skip to content
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

配合线程池使用时,remove了之后,下一个任务还是能拿到上一个任务设置的值 #585

Closed
ChidoriZZ opened this issue Dec 12, 2023 · 1 comment
Assignees
Labels
😖 no runnable reproducible demo 😵 please provide a simple runnable demo that reproduces the problem ❓question Further information is requested

Comments

@ChidoriZZ
Copy link

AbstractMsgJob
image
ThirdThreadLocalCacheUtil
image

这两个任务都继承自这个抽象方法,并且使用同一个线程池。我在任务开始前后都进行了remove。这两个任务是串行执行的,第二个任务还是能拿到第一个任务的参数。能帮忙看看是哪里有问题么

@oldratlee oldratlee added the 😖 no runnable reproducible demo 😵 please provide a simple runnable demo that reproduces the problem label Dec 12, 2023
@oldratlee
Copy link
Member

oldratlee commented Dec 12, 2023

@ChidoriZZ 请提供一个 极简、可运行、复现问题的 代码Demo工程。

推荐提供成一个单独的工程(GitHub repo)。这样可以:

  • 方便大家能排查分析(只提供片段代码、运行问题概述,排查信息不足)
  • 方便分离不相关的业务实现内容,以及排除可能的业务使用问题
    如使用配置问题、其它业务代码的意外影响

@oldratlee oldratlee self-assigned this Dec 18, 2023
@oldratlee oldratlee added the ❓question Further information is requested label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😖 no runnable reproducible demo 😵 please provide a simple runnable demo that reproduces the problem ❓question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants