perf: 优化record相关数据刷新的分布式锁逻辑 #12503#12507
Open
royalhuang wants to merge 3 commits intoTencentBlueKing:masterfrom
Open
perf: 优化record相关数据刷新的分布式锁逻辑 #12503#12507royalhuang wants to merge 3 commits intoTencentBlueKing:masterfrom
royalhuang wants to merge 3 commits intoTencentBlueKing:masterfrom
Conversation
carlyin0801
reviewed
Dec 18, 2025
| } | ||
| buildRecordModelDao.updateRecord( | ||
| buildRecordModelDao.updateStatus( | ||
| dslContext = dslContext, |
Collaborator
There was a problem hiding this comment.
buildRecordModelDao.updateStatus没有锁保护,可能会有线程安全问题!updateStatus这个方法估计要放入锁内部执行,另外refreshOperation的db操作和updateStatus(要是cas更新)要放在同一个事务执行;或者通过队列保证顺序执行
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.
#12503 分级获取并发所