Skip to content

fix(discovery): 终态心跳写入加 2s 超时并脱离同步上下文 - #951

Merged
AlianBlank merged 1 commit into
mainfrom
fix/issue-698
Nov 1, 2026
Merged

AlianBlank merged 1 commit into
mainfrom
fix/issue-698

Conversation

@AlianBlank

Copy link
Copy Markdown
Collaborator

修复 #698:Dispose/OnProcessExit 的终态心跳写入收敛到 WriteTerminalHeartbeatSafely——Task.Run 脱离可能的 SynchronizationContext(防死锁)+ CancellationTokenSource(2s) 超时(防进程退出永久阻塞);失败/超时记本地化日志(新键 Discovery.Registry.TerminalHeartbeatFailed,中英 resx 同步),不阻塞退出,TTL 兜底清除。Discovery 相关测试 123/123 绿。Closes #698

@AlianBlank
AlianBlank merged commit 8d66eee into main Nov 1, 2026
2 checks passed
@AlianBlank
AlianBlank deleted the fix/issue-698 branch November 1, 2026 12:43
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

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.

心跳终态写入用同步等待且没有超时

1 participant