aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dcherednik@ydb.tech>2025-04-28 19:20:32 +0200
committerGitHub <noreply@github.com>2025-04-28 19:20:32 +0200
commita3a0e269ba28a714d9ae1dc45d659db857a604c9 (patch)
tree39dc2ab2b7a1c599dc4264d83419fa34092d1bd0
parent18238c5caa5f6bf455b72f27a8e321f0278724be (diff)
downloadydb-a3a0e269ba28a714d9ae1dc45d659db857a604c9.tar.gz
Fix debug verify in case of session termination without XDC. (#17826)
TGuardActor should be launched only in case of uncompleted ZC transfers. https://github.com/ydb-platform/ydb/issues/17820
-rw-r--r--ydb/library/actors/interconnect/interconnect_zc_processor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ydb/library/actors/interconnect/interconnect_zc_processor.cpp b/ydb/library/actors/interconnect/interconnect_zc_processor.cpp
index 1023557ba57..767f9d533d9 100644
--- a/ydb/library/actors/interconnect/interconnect_zc_processor.cpp
+++ b/ydb/library/actors/interconnect/interconnect_zc_processor.cpp
@@ -383,8 +383,10 @@ public:
}
void Terminate(std::unique_ptr<NActors::TEventHolderPool>&& pool, TIntrusivePtr<NInterconnect::TStreamSocket> socket, const NActors::TActorContext &ctx) override {
- // must be registered on the same mailbox!
- ctx.RegisterWithSameMailbox(new TGuardActor(Uncompleted, Confirmed, std::move(Delayed), socket, std::move(pool)));
+ if (!Delayed.empty()) {
+ // must be registered on the same mailbox!
+ ctx.RegisterWithSameMailbox(new TGuardActor(Uncompleted, Confirmed, std::move(Delayed), socket, std::move(pool)));
+ }
}
private:
const ui64 Uncompleted;