From 0198ddf95c1d8f6394aacba76719b4f91aaa28f8 Mon Sep 17 00:00:00 2001 From: Ivan Efimov Date: Tue, 9 Jun 2026 12:37:23 +0200 Subject: Fix vhost evloop contention failing partition tests (#42863) --- ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp b/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp index 249d7c06b9c..62eb7b686d2 100644 --- a/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp +++ b/ydb/core/nbs/cloud/blockstore/bootstrap/bootstrap.cpp @@ -89,6 +89,9 @@ const NKikimrConfig::TNbsConfig& TNbsService::GetConfig() const void CreateNbsService(const NKikimrConfig::TNbsConfig& config) { + // Ensure existing NbsService (if any) is destroyed BEFORE a new one + // is constructed to prevent global vhost queue contention. + NbsService = nullptr; NbsService = std::make_shared(config); } -- cgit v1.3