Skip to content

Commit d525341

Browse files
authored
Fix IC unsubscription race bug (#6304)
1 parent e686036 commit d525341

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/core/blobstorage/nodewarden/distconf_binding.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ namespace NKikimr::NStorage {
144144
}
145145

146146
const auto it = SubscribedSessions.find(nodeId);
147-
Y_ABORT_UNLESS(it != SubscribedSessions.end());
147+
if (it == SubscribedSessions.end()) {
148+
return; // this may be a race with unsubscription
149+
}
148150
Y_ABORT_UNLESS(!it->second || it->second == ev->Sender);
149151
SubscribedSessions.erase(it);
150152

0 commit comments

Comments
 (0)