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

使用jrebel -javaagent方式启动,在stream().parallel()无法正确获取内容 #338

Closed
aeroyu opened this issue Dec 25, 2021 · 3 comments
Assignees
Labels
😖 no runnable reproducible demo 😵 please provide a simple runnable demo that reproduce the problem ❓question Further information is requested ttl agent

Comments

@aeroyu
Copy link

aeroyu commented Dec 25, 2021

如题

@oldratlee
Copy link
Member

oldratlee commented Dec 28, 2021

首先,配置TTL Agent在最前的位置,可以避免与其它其它Agent配合使用时,TTL Agent可能的不生效问题。 @aeroyu

参见文档 FAQ 的说明:

Q1. TTL Agent与其它Agent(如SkywalkingPromethues)配合使用时不生效?

配置TTL Agent在最前的位置,可以避免与其它其它Agent配合使用时,TTL Agent可能的不生效问题。配置示例:

java -javaagent:path/to/transmittable-thread-local-2.x.y.jar \
     -javaagent:path/to/skywalking-agent.jar \
     -jar your-app.jar

另外,给一个可以说明/复现问题的、极简可运行的Demo工程 ❤️;推荐:

有一个可以说明/复现问题的、极简可运行的Demo工程,也可以排除可能的使用上的问题。

@oldratlee oldratlee added ❓question Further information is requested 😖 no runnable reproducible demo 😵 please provide a simple runnable demo that reproduce the problem ttl agent labels Dec 28, 2021
@oldratlee
Copy link
Member

@aeroyu
这个 Issue 先 close;如果有了复现的 demo,随时 reopen 继续讨论。

@oldratlee oldratlee self-assigned this Jan 3, 2022
@aeroyu
Copy link
Author

aeroyu commented Jan 5, 2024

重现了
重现条件:在spring初始化前,调用parallelStream,比如
image
后续的parallelStream都不能正确获取

需要使用jrebel启动,使用普通启动则没有问题
ttl_jrebel_demo.zip

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 reproduce the problem ❓question Further information is requested ttl agent
Projects
None yet
Development

No branches or pull requests

2 participants