已关闭
[Bug-Report|缺陷反馈]: tsd ProcessModeManager::Close 未清理 hasSendConfigFile_ 与 pkg hash 缓存 #743
Ding_Jing创建于  7月15日关闭于  7月30日
Ding_Jing
Ding_Jing成员
7月15日 创建

Describe the current behavior / 问题描述

ProcessModeManager::Close() 在关闭 hccp / computer 进程时,未重置 hasSendConfigFile_ 标志,也未清理 pkgHostHashValue_ / pkgDeviceHashValue_ 缓存。会话关闭后这些状态残留在对象中。

Environment / 环境信息

  • 组件:CANN runtime,tsdclient 模块
  • 文件:src/tsd/tsdclient/src/process_mode_manager.cpp
  • 说明:代码走查发现,不依赖特定昇腾硬件型号。

Steps to reproduce the issue / 重现步骤

  1. 启动 tsd 会话,触发一次配置文件下发(此时 hasSendConfigFile_ 置位,pkgHostHashValue_ / pkgDeviceHashValue_ 记录了包哈希)。
  2. 调用 ProcessModeManager::Close() 关闭会话。
  3. 在同一对象上再次启动 / 下发,观察 hasSendConfigFile_ 与 pkg hash 仍为上一次的残留值。

Describe the expected behavior / 预期结果

Close() 应将 hasSendConfigFile_ 复位为 false,并清空 pkgHostHashValue_ / pkgDeviceHashValue_,使下一次启动能正确重新判断并下发配置文件。

代码走查发现,暂无运行期日志。

Special notes for this issue / 备注

修复见 PR #3670(cann/runtime)。

likedislike
Ding_Jing
Ding_Jing成员
7月15日 评论:

/assign

likedislike
CANN-robotCANN-robot成员
7月15日 将 Ding_Jing 设为负责人
Ding_JingDing_Jing成员
7月15日 关联了pull request:【bugfix】tsd Close 时清理 hasSendConfigFile_ 与 pkg hash 缓存
Ding_Jing
Ding_Jing成员
7月30日 评论:

/close

likedislike
CANN-robotCANN-robot成员
7月30日 issue状态由 进行中 改变为 已完成
CANN-robotCANN-robot成员
7月30日 关闭了 issue
CANN-robotCANN-robot成员
7月30日 添加了label:resolved