Pull Request已成功合入, 合并人@CANN-robot
(感谢 Ding_Jing 的贡献)变更摘要
本次修复针对 ProcessModeManager::Close() 在关闭会话时未清理配置文件下发相关状态的问题:当 hccp / computer 进程关闭后,hasSendConfigFile_ 标志位及 pkgHostHashValue_ / pkgDeviceHashValue_ 两个包哈希缓存未被重置,导致会话关闭后状态残留,可能使下一次启动时错误地跳过配置文件重新下发。改动在 Close() 返回前补充了这三项状态的清理逻辑。
主要改动
- 重置
hasSendConfigFile_标志: 在ProcessModeManager::Close()中将hasSendConfigFile_置为false,确保下次会话启动时不会因为残留的已下发标记而跳过配置文件下发流程。 - 清空
pkgHostHashValue_缓存: 在ProcessModeManager::Close()中调用pkgHostHashValue_.clear(),清理主机侧包哈希缓存,避免旧哈希值影响新会话的配置变更判断。 - 清空
pkgDeviceHashValue_缓存: 在ProcessModeManager::Close()中调用pkgDeviceHashValue_.clear(),清理设备侧包哈希缓存,与主机侧保持一致的清理策略。


Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| ** | ✅ gcw_kUomxQ2l, yanmingxiang (2/2) | ✅ gcw_kUomxQ2l (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
Ding_Jing, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [e59a848151cc45deba6204afec8b978f][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS | >>>>> |
[2026-07-15 17:43:59] CI执行结束


流水线任务触发成功
任务链接 [33a10267dc6c402c96d728daeb5238e6][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Check_Pr | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-07-15 17:41:02] CI执行结束


compile


流水线任务触发成功
任务链接 [c9dbd95f9d714798b2c2da080214990a][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| UT_Test_acl | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_v201 | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_c | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_david | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_910b | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_common | ✅ SUCCESS | >>>>> | |
| UT_Test_platform | ✅ SUCCESS | >>>>> | |
| UT_Test_qs | ✅ SUCCESS | >>>>> | |
| UT_Test_aicpusd | ✅ SUCCESS | >>>>> | |
| UT_Test_tsd | ✅ SUCCESS | >>>>> | |
| UT_Test_error_manager | ✅ SUCCESS | >>>>> | |
| UT_Test_slog | ✅ SUCCESS | >>>>> | |
| UT_Test_atrace | ✅ SUCCESS | >>>>> | |
| UT_Test_adump | ✅ SUCCESS | >>>>> | |
| UT_Test_mmpa | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof | ✅ SUCCESS | >>>>> | |
| UT_Test_rts_report | ✅ SUCCESS | >>>>> | |
| UT_Test_msprof_report | ✅ SUCCESS |
[2026-07-20 08:43:17] CI执行结束


流水线任务触发成功
任务链接 [fee201ea6afd4f10ae166dcc9e34209b][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Check_Pr | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-07-20 08:36:07] CI执行结束


/lgtm
/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
ZhaiPeiChao


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
ZhaiPeiChao


/lgtm


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
ZhaiPeiChao


/approve


The following users do not have permission to comment /lgtm or /approve on any module in this PR:
ZhaiPeiChao


Pull Request
描述
ProcessModeManager::Close()关闭 hccp / computer 进程时,未重置hasSendConfigFile_,也未清理pkgHostHashValue_/pkgDeviceHashValue_缓存,导致会话关闭后这些状态残留,可能影响下一次启动时“是否需要重新下发配置文件”的判断。本 PR 在Close()流程末尾补充清理这三处状态。变更类型
关联的Issue
#743 (建议在右侧“关联 Issue”面板绑定,并勾选“合并后关闭已关联的 Issue”)
如何测试
hasSendConfigFile_置位、pkgHostHashValue_/pkgDeviceHashValue_已记录包哈希。ProcessModeManager::Close()关闭会话。hasSendConfigFile_已复位为false、两个 pkg hash 已清空,配置文件能被正确重新下发。核对清单
其他信息
改动仅 3 行,位于
src/tsd/tsdclient/src/process_mode_manager.cpp的ProcessModeManager::Close(),不涉及对外接口变更,无需文档更新。