Repository navigation
fix(core): 组件激活快速路径改判完成标记并在 actor 上下文复检 - #953
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



修复 #673(CODE_REVIEW M24「激活进行中被快速路径提前放行」):
BaseComponent新增 volatile_isActivationCompleted/IsActivationCompleted(与激活开始即置位的IsActive区分),InactiveAsyncfinally 中复位。Actor.GetComponentAgentAsync快速路径改判IsActivationCompleted:激活进行中(读库/代理三段回调未完)的外部调用者排队等待,不再提前拿到 agent 访问未加载状态。ActivateComponentIfNeededAsync:进入 actor 上下文后复检IsActive(内联嵌套调用直接返回,不递归激活;并发排队的工作单元只执行一次激活)。ActivateComponentAsync末尾置完成标记(激活失败也视为流程结束,与既有不重试行为一致)。不采用信号量/单次激活 Task:激活过程中同 actor 内嵌套获取兄弟组件走内联路径会自锁。
GetComponentAgentAsync签名与全部调用方不变。全量 2540/2540 绿;Hotfix.Tests 仅剩 main 既有 7 例失败(与本改动无关)。Closes #673