DevWeave logoDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
apache/trafficserver #14213openC++C & C++

EThread::execute ignores the event code stored by schedule_spawn

Opened by @JosiahWI · Assignees: None

View on GitHub
CleanupGood First IssueEvent System

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)

2,003 GitHub Stars

Claim Status & GitHub Signal

Unassigned with 0 comments. Open the workspace to inspect linked PRs before claiming or coding.

AI Issue Assessment · Grounded Analyzer
2.8 / 10 · 3–4 · Beginner

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.

Skill Match Breakdown

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.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted
Learn Git

Branching, commits, rebasing, and collaborative Git workflows.

Addresses skill gap: Git & Collaboration

Learn Memory Management in C

Stack vs. heap allocation, pointers, and low-level memory patterns.

Addresses skill gap: C++

Hands-On CodeCrafters Practice
Skill-Gap Challenge
Build your own Shell
C++

Parse commands, manage PATH lookups, pipes, and process execution.

Practice skill gap: C++

Build your own Git
C++

Implement .git storage, blob/tree objects, SHA hashing, and plumbing commands.

Practice skill gap: C++

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.

Peer Help Forum · apache/trafficserver #14213

Issue Troubleshooting Threads (0)

Ask Peers for Help

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.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

.asf.yaml
.clang-analyzer
.clang-format
.clang-tidy
.clang-tidy-ci
[dir] .claude
.claude/CLAUDE.md
[dir] .claude/skills
[dir] .claude/skills/ats-build
.claude/skills/ats-build/SKILL.md
[dir] .claude/skills/convert-autest-to-urtest
.claude/skills/convert-autest-to-urtest/SKILL.md
.cmakefmt.yaml
[dir] .cursor
[dir] .cursor/rules
.cursor/rules/writing-autests.mdc
.editorconfig
.git-blame-ignore-revs
[dir] .github
.github/copilot-instructions.md
[dir] .github/instructions
.github/instructions/HRW.instructions.md
[dir] .github/workflows
.github/workflows/cifuzz.yml

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

  1. 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.

  2. 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.

  3. 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:

  1. Always branch off the master branch, unless you are requesting a subsequent backport PR.

  2. Make the subject line short (< 50 characters), but reasonably descriptive.

  3. When filing a PR, without a previous Issue describing the problem, please write something explaining the problem as part of the Description.

  4. When filing an Issue, you should of course describe the problem, as well as any details such as platform, versions of software etc. used.

  5. Make sure you set the appropriate Milestone, Labels, Assignees and Reviewers.

  6. If the PR is a backport, or intended to be backported, please make sure to add the Backport label.

  7. If the PR is a Work-In-Progress, and not ready to commit, mark it with the WIP label.

  8. 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.