-
Notifications
You must be signed in to change notification settings - Fork 590
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
Hard to debug in standalone mode due to logs of different components being in the same file #13988
Comments
Hmm isn't crate prefix mostly sufficient ( |
Some crates are shared by multiple components. IMO the extent of interleave depends on the workload. In the integration test scenario, workload is usually light, so it is still acceptable. But if we run complex workload e.g. ch-benchmark, I think it would be hard to analyze issue specific to a component. |
What I'm thinking is if the solution can be as simple as providing a script or tool to partition the logs by crate. |
IIRC, most of our workloads run under their specific runtimes, where the custom thread names are set. risingwave/src/stream/src/task/stream_manager.rs Lines 424 to 434 in 9dcad74
Do you think including the thread name in the logs will help? |
This one looks better to me. But I think it may not cover the case of the embedded jvm, those log printed in java side is running in a dedicated thread. Or we may need to assign a name to it. Do we will use standalone on the cloud? I am not sure whether the plugin can collect the logs belonging to different components with the above solutions. |
Yes, for dev tier |
Closed by #14114 |
@lmatz After change the integration pipeline to use standalone mode, all logs printed by different components (cn, compactor, etc) are interleaved. And we cannot easily grep by component name, since there is no component name prefix in the log, only crate prefix. That makes it hard to analyze the failed test case.
So what about change the docker-compose.yml of integration test to inherit from
docker-compose-distributed.yml
instead ofdocker-compose.yml
.Originally posted by @StrikeW in #13235 (comment)
The text was updated successfully, but these errors were encountered: