Skip to content

Add more context on logs 3 files #52472

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fscnick
Copy link
Contributor

@fscnick fscnick commented Apr 20, 2025

Why are these changes needed?

To benefit the log parsing, add more context on logs.

This PR addresses the following files in #52468.

  • src/ray/core_worker/actor_manager.cc
  • src/ray/core_worker/common.cc
  • src/ray/core_worker/context.cc

screenshots:
actor_manager.cc
actor_manager_208
actor_manager_218
actor_manager 335

common.cc
common_65

context.cc
context_453

Related issue number

Closes #52469

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@fscnick fscnick marked this pull request as ready for review April 21, 2025 12:36
@hainesmichaelc hainesmichaelc added the community-contribution Contributed by the community label Apr 21, 2025
@masoudcharkhabi masoudcharkhabi added the core Issues that should be addressed in Ray Core label Apr 21, 2025
@fscnick
Copy link
Contributor Author

fscnick commented Apr 22, 2025

@kevin85421 PTAL

Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add screenshots for these logs?

@@ -450,7 +450,7 @@ ObjectID WorkerContext::GetGeneratorReturnId(const TaskID &task_id,
// return values.
auto max_generator_returns = GetThreadContext().GetMaxNumGeneratorReturnIndex();
if (put_index > max_generator_returns) {
RAY_LOG(FATAL)
RAY_LOG(FATAL).WithField("task_id", current_task_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need "task_id"?

@fscnick
Copy link
Contributor Author

fscnick commented Apr 25, 2025

can you add screenshots for these logs?

Hi @kevin85421 , I have updated screenshots in the description.

@fscnick fscnick requested a review from kevin85421 April 25, 2025 14:15
@kevin85421 kevin85421 added the go add ONLY when ready to merge, run all tests label Apr 26, 2025
Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ping me when all CI tests pass.

@fscnick
Copy link
Contributor Author

fscnick commented Apr 26, 2025

Hi @kevin85421, the CI has passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[core] Add log context information ,actor_manager.cc, common.cc, context.cc
4 participants