We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
这样可以避免 Agent插入的TTL逻辑不被丢掉
TTL
The text was updated successfully, but these errors were encountered:
新建这个Issue原来的想法 是因为:
Issue
用户代码中继承java.util.concurrent.ThreadPoolExecutor和java.util.concurrent.ScheduledThreadPoolExecutor,覆盖了execute、submit、schedule等提交任务的方法,并且没有调用父类的方法。 修改线程池类的实现,execute、submit、schedule等提交任务的方法禁止这些被覆盖,可以规避这个问题。
用户代码中继承java.util.concurrent.ThreadPoolExecutor和java.util.concurrent.ScheduledThreadPoolExecutor,覆盖了execute、submit、schedule等提交任务的方法,并且没有调用父类的方法。
java.util.concurrent.ThreadPoolExecutor
java.util.concurrent.ScheduledThreadPoolExecutor
execute
submit
schedule
修改线程池类的实现,execute、submit、schedule等提交任务的方法禁止这些被覆盖,可以规避这个问题。
现在分析,认为这个Issue没有意义。原因如下:
重写Executor的submit、execute方法而不调用 父类方法,几乎不可能 扩展实现出一个功能正常的 线程池。
Executor
Sorry, something went wrong.
oldratlee
No branches or pull requests
这样可以避免 Agent插入的
TTL
逻辑不被丢掉The text was updated successfully, but these errors were encountered: