-
Notifications
You must be signed in to change notification settings - Fork 709
Synchronization of the read and write order for compactified topics #22557
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
base: main
Are you sure you want to change the base?
Conversation
🟢 |
⚪ |
⚪ |
if (!RequestsInflight && WaitingInflightRequests.empty() && (ExclusiveLockState == EExclusiveLockState::EAcquiring)) { | ||
ExclusiveLockState = EExclusiveLockState::EAcquired; | ||
ReplyExclusiveLockAcquired(ExclusiveLockRequester); | ||
} | ||
} | ||
|
||
void TPartitionQuoterBase::ProcessInflightQueue() { | ||
auto now = ActorContext().Now(); | ||
while (!WaitingInflightRequests.empty() && RequestsInflight < MaxInflightRequests) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не надо ли тут проверить еще и стейт лока, что он Released?
|
||
void TPartitionQuoterBase::HandleReleaseExclusiveLock(TEvPQ::TEvReleaseExclusiveLock::TPtr& ev, const TActorContext& ctx) | ||
{ | ||
ExclusiveLockState = EExclusiveLockState::EReleased; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Y_VERIFY если стейт EReleased
Changelog entry
Added a synchronization primitive. Shared read, exclusive write.
Changelog category
Description for reviewers
...