Skip to content

perf: 优化record相关数据刷新的分布式锁逻辑 #12503#12507

Open
royalhuang wants to merge 3 commits intoTencentBlueKing:masterfrom
royalhuang:issue_12503
Open

perf: 优化record相关数据刷新的分布式锁逻辑 #12503#12507
royalhuang wants to merge 3 commits intoTencentBlueKing:masterfrom
royalhuang:issue_12503

Conversation

@royalhuang
Copy link
Collaborator

#12503 分级获取并发所

@royalhuang royalhuang closed this Dec 18, 2025
@royalhuang royalhuang reopened this Dec 18, 2025
}
buildRecordModelDao.updateRecord(
buildRecordModelDao.updateStatus(
dslContext = dslContext,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buildRecordModelDao.updateStatus没有锁保护,可能会有线程安全问题!updateStatus这个方法估计要放入锁内部执行,另外refreshOperation的db操作和updateStatus(要是cas更新)要放在同一个事务执行;或者通过队列保证顺序执行

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.

2 participants