EThread::execute ignores the event code stored by schedule_spawn
Opened by @JosiahWI · Assignees: None
Solve & Merge Reward: Up to +310 XP & +60 Coins
+30 XP on PR open · +180 XP & +60 coins on merge · +100 star XP (2,003 stars)
Claim Status & GitHub Signal
Unassigned with 0 comments. Open the workspace to inspect linked PRs before claiming or coding.
Estimated from issue labels (Cleanup, Good First Issue, Event System), C++ context, and discussion depth. No comments are posted yet, so check repository conventions carefully. Note: this is an estimate, not a guarantee.
What It's About
EThread::execute ignores the event code stored by schedule_spawn. EThread::schedule_spawn(Continuation c, int ev, void cookie) stores ev as the start event's callback_event ([UnixEThread.ccL659-L673](https://github.com/apache/trafficserver/blob/eeeada36e1dff81822977bc36016d4264d64cdb8/src/iocore/eventsystem/UnixEThread.ccL65
Why It Matters
Resolving #14213 improves reliability and developer experience in apache/trafficserver.
Expected Outcome
A focused pull request addressing #14213 with relevant checks or tests verified locally.
Log in to compare this issue's requirements against your profile skills. Required concepts: C++, Git & Collaboration, Codebase Reading.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Issue Description
EThread::schedule_spawn(Continuation *c, int ev, void *cookie) stores ev as the start event's callback_event (UnixEThread.cc#L659-L673, EThread.h#L303). EThread::execute then dispatches the start event with a hard-coded EVENT_IMMEDIATE instead of start_event->callback_event (UnixEThread.cc#L388-L392), so the ev argument has no effect.
This is latent: the only caller, EventProcessor::spawn_event_threads, uses the default EVENT_IMMEDIATE (UnixEventProcessor.cc#L459).
Suggested fix: pass start_event->callback_event in execute, or remove the ev parameter from schedule_spawn.
generated with Claude Opus 5.5 by Josiah VanderZee
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (0)
No comments on this issue yet.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
CONTRIBUTING.md Excerpt
Contributing to Apache Traffic Server
All contributions to the ATS project should be done via a Github Pull Request (aka PR). If you are having an issue, but no code available yet, you should file a Github Issue instead, which later will be linked to a new PR.
In general, all changes that are to be committed should have a Github PR. There are some reasonable exceptions to this, but we should stick to the Github workflow as agreed upon.
New Issues process replacing old Jira
-
If there is an issue/feature, an existing Jira Ticket, and no code, then create a Github Issue. Copy the relevant information into the Github Issue and request the Jira Ticket to be closed. Hopefully this use case won't happen very often.
-
If there is an issue/feature and no code, then create a Github Issue. When there is code later, create a Github Pull Request and reference the Github Issue.
-
If there is an issue/feature and code, then create a Github Pull Request. If there is an existing Jira Ticket or Github Issue refer to the Ticket or Issue in the PR. Creating a Github Issue is not required for a Github Pull Request.
Making a good PR or Issue
Since Github PRs and Issues are now our primary way of tracking both code changes and outstanding issues, it's important that we all play nicely. Here are a few simple rules to follow:
-
Always branch off the master branch, unless you are requesting a subsequent backport PR.
-
Make the subject line short (< 50 characters), but reasonably descriptive.
-
When filing a PR, without a previous Issue describing the problem, please write something explaining the problem as part of the Description.
-
When filing an Issue, you should of course describe the problem, as well as any details such as platform, versions of software etc. used.
-
Make sure you set the appropriate Milestone, Labels, Assignees and Reviewers.
-
If the PR is a backport, or intended to be backported, please make sure to add the Backport label.
-
If the PR is a Work-In-Progress, and not ready to commit, mark it with the WIP label.
-
Make sure to format your code before making the PR. This is easily done with e.g. "cmake --build build --target
... (truncated)
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.