Skip to content

[0.13.0][P/D][PCP]bugfix pcp force free twice caused logger error#6132

Merged
wangxiyuan merged 1 commit intovllm-project:releases/v0.13.0from
wangxiaoteng888:bugfix_pcp_free_0.13.0
Jan 23, 2026
Merged

[0.13.0][P/D][PCP]bugfix pcp force free twice caused logger error#6132
wangxiyuan merged 1 commit intovllm-project:releases/v0.13.0from
wangxiaoteng888:bugfix_pcp_free_0.13.0

Conversation

@wangxiaoteng888
Copy link
Copy Markdown
Contributor

@wangxiaoteng888 wangxiaoteng888 commented Jan 22, 2026

What this PR does / why we need it?

The issue of the D node mistakenly sending the pull-end signal twice, leading to the P node printing logger errors abnormally, has been resolved.
pick-from: #6124

Does this PR introduce any user-facing change?

No

How was this patch tested?

By ci

Signed-off-by: wangxiaoteng <wangxiaoteng@huawei.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a critical bug where the D node could send a 'pull-end' signal twice to the P node. This was caused by a race condition in the _handle_request method's finally block. When all_task_done was true, the proc_not_transfer_request flag for a request was deleted before the final call to _send_done_signal_to_free_remote_port, causing the function's one-time logic to execute a second time for the same request. Moving the call to _send_done_signal_to_free_remote_port to before the all_task_done check correctly resolves this issue by ensuring the function is called before its state is cleaned up. The change is correct and effectively prevents the duplicate signal, which was causing erroneous logging on the P node.

@wangxiyuan wangxiyuan changed the title [P/D][PCP]bugfix pcp force free twice caused logger error [0.13.0][P/D][PCP]bugfix pcp force free twice caused logger error Jan 23, 2026
@wangxiyuan wangxiyuan merged commit 7291da0 into vllm-project:releases/v0.13.0 Jan 23, 2026
9 checks passed
starmountain1997 pushed a commit to starmountain1997/vllm-ascend that referenced this pull request Jan 31, 2026
…lm-project#6132)

### What this PR does / why we need it?
The issue of the D node mistakenly sending the pull-end signal twice,
leading to the P node printing logger errors abnormally, has been
resolved.
pick-from: vllm-project#6124

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
By ci


Signed-off-by: wangxiaoteng <wangxiaoteng@huawei.com>
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.

2 participants