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

reactor: print scheduling group along with backtrace #2221

Closed

Conversation

nvartolomei
Copy link
Contributor

@nvartolomei nvartolomei commented May 4, 2024

reactor: print scheduling group along with backtrace

Backtraces are printed in at least 2 cases:

  1. during segfaults,
  2. during reactor stalls.
    Extra context is always helpful in identifying the exact circumstances
    during which the above happen. E.g. in a server application where user
    requests are processed in one (or more) scheduling group(s), background
    processes are split between different scheduling groups as well, knowing
    the scheduling group narrows the search space.

Prior to this commit:

Segmentation fault on shard 0.
Backtrace:
  ...

With this commit:

Segmentation fault on shard 0, in scheduling group main.
Backtrace:
  ...

Ref #2216

@nvartolomei nvartolomei force-pushed the nv/backtrace-with-sched-group branch from 576426a to 86dbc42 Compare May 4, 2024 21:56
src/core/reactor.cc Outdated Show resolved Hide resolved
@nvartolomei nvartolomei force-pushed the nv/backtrace-with-sched-group branch from 86dbc42 to 56b17cc Compare May 8, 2024 07:36
Backtraces are printed in at least 2 cases:
  1) during segfaults,
  2) during reactor stalls.
Extra context is always helpful in identifying the exact circumstances
during which the above happen. E.g. in a server application where user
requests are processed in one (or more) scheduling group(s), background
processes are split between different scheduling groups as well, knowing
the scheduling group narrows the search space.

Prior to this commit:

```
Segmentation fault on shard 0.
Backtrace:
  ...
```

With this commit:

```
Segmentation fault on shard 0, in scheduling group main.
Backtrace:
  ...
```

Ref scylladb#2216
@nvartolomei nvartolomei force-pushed the nv/backtrace-with-sched-group branch from 56b17cc to 2ae0df3 Compare May 8, 2024 07:37
@xemul xemul closed this in d1ec692 May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants