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 61b7d6c commit 0b61b05Copy full SHA for 0b61b05
ydb/public/sdk/cpp/client/ydb_federated_topic/impl/federated_write_session.cpp
@@ -140,9 +140,13 @@ std::shared_ptr<NTopic::IWriteSession> TFederatedWriteSessionImpl::OpenSubsessio
140
}
141
142
})
143
- .AcksHandler([selfCtx = SelfContext](NTopic::TWriteSessionEvent::TAcksEvent& ev) {
+ .AcksHandler([selfCtx = SelfContext, generation = SubsessionGeneration](NTopic::TWriteSessionEvent::TAcksEvent& ev) {
144
if (auto self = selfCtx->LockShared()) {
145
with_lock(self->Lock) {
146
+ if (generation != self->SubsessionGeneration) {
147
+ return;
148
+ }
149
+
150
Y_ABORT_UNLESS(ev.Acks.size() <= self->OriginalMessagesToGetAck.size());
151
152
for (size_t i = 0; i < ev.Acks.size(); ++i) {
0 commit comments