Commit 33f0cbd
committed
fix: resolve lastore-daemon service registration status check issue
The update service registration was failing to properly check
system status after the lastore-daemon became valid. Previously, the
wait service timer was not being stopped when the check system was
called from the timer callback, causing potential race conditions.
Additionally, the doCheckSystem method contained the D-Bus service
validity check, which was moved to a new checkSystem method that
properly handles the waiting logic before calling doCheckSystem.
Log: Fixed system check after lastore-daemon service registration
Influence:
1. Test system check functionality when lastore-daemon service is
already valid
2. Test system check when lastore-daemon service is not yet available
and becomes valid later
3. Verify that wait service timer is properly stopped when service
becomes valid
4. Verify that system check is not triggered twice due to timer race
conditions
5. Test upgrade workflow end-to-end to ensure proper system check
execution
fix: 修复lastore-daemon服务注册后获取状态问题
更新服务注册时,在lastore-daemon变为有效后未能正确检查系统状态。之前从
定时器回调调用checkSystem时没有停止等待服务定时器,可能导致竞态条件。
此外,doCheckSystem方法包含了D-Bus服务有效性检查,现在将其移动到新的
checkSystem方法中,该方法在调用doCheckSystem之前正确处理等待逻辑。
Log: 修复lastore-daemon服务注册后的系统检查
Influence:
1. 测试lastore-daemon服务已生效时的系统检查功能
2. 测试lastore-daemon服务尚未就绪后变为可用时的系统检查
3. 验证服务可用时等待服务定时器是否正常停止
4. 验证不会因定时器竞态条件导致系统检查被触发两次
5. 测试完整升级流程,确保系统检查正常执行
PMS: BUG-361789
Change-Id: I5de82d873a864673eb06482f09109c32f10cdc8f1 parent c3a2c6f commit 33f0cbd
3 files changed
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
111 | 127 | | |
112 | 128 | | |
113 | 129 | | |
| |||
387 | 403 | | |
388 | 404 | | |
389 | 405 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
| 406 | + | |
398 | 407 | | |
399 | 408 | | |
400 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments