Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 主机AgentId更新后,小概率出现使用旧AgentId下发任务 #2142

Closed
jsonwan opened this issue Jun 16, 2023 · 0 comments
Closed
Assignees
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞

Comments

@jsonwan
Copy link
Collaborator

jsonwan commented Jun 16, 2023

Version / Branch / tag
master

出了什么问题?(What Happened?)
主机AgentId更新后,小概率出现使用旧AgentId下发任务
原因:
主机AgentId更新事件已被监听并处理,但事件前一刻该主机对应的业务正好在同步主机,同步拿到的旧数据将事件新数据覆盖了,导致新的主机信息需要在一个同步周期后才能再被更新为正确的数据。

如何复现?(How to reproduce?)
节点管理更新AgentId到CMDB后,20s内再调用Job接口分发文件,小概率出现超时失败

预期结果(What you expect?)
只要Job收到CMDB主机事件并处理后,分发就应当成功

@jsonwan jsonwan added kind/bug 程序故障Bug,漏洞 backlog 需求初始状态,等待产品进行评估 labels Jun 16, 2023
@jsonwan jsonwan self-assigned this Jun 16, 2023
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 29, 2023
1.更新/删除主机前,对比cmdb主机数据获取时间与当前DB数据最后更新时间,防止旧数据覆盖新数据;
2.去除批量更新主机长事务;
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 29, 2023
1.去除主机数据更新与主机关系数据更新间的耦合;
2.全量更新改为增量更新;
3.去除对主机表中拓扑数据的引用,后续去除冗余拓扑字段。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 29, 2023
1.去除主机数据更新与主机关系数据更新间的耦合;
2.全量更新改为增量更新;
3.去除对主机表中拓扑数据的引用,后续去除冗余拓扑字段。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 29, 2023
1.去除主机数据更新与主机关系数据更新间的耦合;
2.全量更新改为增量更新;
3.去除对主机表中拓扑数据的引用,后续去除冗余拓扑字段。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 29, 2023
1.去除主机数据更新与主机关系数据更新间的耦合;
2.全量更新改为增量更新;
3.去除对主机表中拓扑数据的引用,后续去除冗余拓扑字段。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 29, 2023
1.去除主机数据更新与主机关系数据更新间的耦合;
2.全量更新改为增量更新;
3.去除对主机表中拓扑数据的引用,后续去除冗余拓扑字段。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 30, 2023
1.去除主机数据更新与主机关系数据更新间的耦合;
2.全量更新改为增量更新;
3.去除对主机表中拓扑数据的引用,后续去除冗余拓扑字段。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 30, 2023
wangyu096 added a commit that referenced this issue Jun 30, 2023
fix: 主机AgentId更新后,小概率出现使用旧AgentId下发任务 #2142
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 30, 2023
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 30, 2023
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jun 30, 2023
wangyu096 added a commit that referenced this issue Jun 30, 2023
fix: 主机AgentId更新后,小概率出现使用旧AgentId下发任务 #2142
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jul 4, 2023
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jul 4, 2023
1. 批量查询主机拓扑关系,提升接口性能;
2. 修复trace数据上报。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jul 4, 2023
1. 批量查询主机拓扑关系,提升接口性能;
2. 修复trace数据上报。
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jul 4, 2023
1. 批量查询主机拓扑关系,提升接口性能;
2. 修复trace数据上报。
wangyu096 added a commit that referenced this issue Jul 4, 2023
fix: 主机AgentId更新后,小概率出现使用旧AgentId下发任务 #2142
@bkjob-bot bkjob-bot added for test 可以在测试环境进行验收 done 已上线到正式环境并验收通过 and removed backlog 需求初始状态,等待产品进行评估 for test 可以在测试环境进行验收 labels Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

2 participants