We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56ab71 commit 12b4b8eCopy full SHA for 12b4b8e
src/client/federated_topic/impl/federated_write_session.cpp
@@ -139,9 +139,13 @@ std::shared_ptr<NTopic::IWriteSession> TFederatedWriteSessionImpl::OpenSubsessio
139
}
140
141
})
142
- .AcksHandler([selfCtx = SelfContext](NTopic::TWriteSessionEvent::TAcksEvent& ev) {
+ .AcksHandler([selfCtx = SelfContext, generation = SubsessionGeneration](NTopic::TWriteSessionEvent::TAcksEvent& ev) {
143
if (auto self = selfCtx->LockShared()) {
144
with_lock(self->Lock) {
145
+ if (generation != self->SubsessionGeneration) {
146
+ return;
147
+ }
148
+
149
Y_ABORT_UNLESS(ev.Acks.size() <= self->OriginalMessagesToGetAck.size());
150
151
for (size_t i = 0; i < ev.Acks.size(); ++i) {
0 commit comments