ydb-platform / ydb

YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions
https://ydb.tech
Apache License 2.0
4k stars 565 forks source link

KIKIMR-20713: VERIFY failed: Attach cannot be called more than once #2076

Closed dcherednik closed 8 months ago

dcherednik commented 8 months ago

Два ноды (из 6) shared базы упали по VERIFY

Версия stable-23-3-25

{% cut "VERIFY failed (2024-01-11T09:42:56.841437Z): Attach cannot be called more than once" %}

Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: VERIFY failed (2024-01-11T09:42:56.841437Z): Attach cannot be called more than once
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]:   ydb/core/grpc_streaming/grpc_streaming.h:312
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]:   Attach(): requirement !(flags & FlagAttached) failed
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NPrivate::InternalPanicImpl(int, char const*, char const*, int, int, int, TBasicStringBuf<char, std::__y1::char_traits<char> >, char const*, unsigned long)+649 (0x561EFE1EBFF9)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NPrivate::Panic(NPrivate::TStaticBuf const&, int, char const*, char const*, char const*, ...)+272 (0x561EFE1E29E0)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NKikimr::NGRpcServer::TGRpcStreamingRequest<Ydb::PersQueue::V1::StreamingWriteClientMessage, Ydb::PersQueue::V1::StreamingWriteServerMessage, NKikimr::NGRpcService::V1::TGRpcPersQueueService, 413>::Attach(NActors::TActorId)+554 (0x561F09F99D4A)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NKikimr::NGRpcServer::TGRpcStreamingRequest<Ydb::PersQueue::V1::StreamingWriteClientMessage, Ydb::PersQueue::V1::StreamingWriteServerMessage, NKikimr::NGRpcService::V1::TGRpcPersQueueService, 413>::TFacade::Attach(NActors::TActorId)+30 (0x561F09F9940E)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NKikimr::NGRpcService::TGRpcRequestBiStreamWrapper<273219637u, Ydb::PersQueue::V1::StreamingWriteClientMessage, Ydb::PersQueue::V1::StreamingWriteServerMessage, (NKikimr::NGRpcService::TRateLimiterMode)0>::ReplyUnavaliable()+43 (0x561F09F9DE9B)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NKikimr::NGRpcProxy::V1::TWriteSessionActor<true>::Handle(TAutoPtr<NActors::TEventHandle<NKikimr::NGRpcService::TGRpcRequestProxy::TEvRefreshTokenResponse>, TDelete>&, NActors::TActorContext const&)+697 (0x561F079ABA39)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NKikimr::NGRpcProxy::V1::TWriteSessionActor<true>::StateFunc(TAutoPtr<NActors::IEventHandle, TDelete>&)+2016 (0x561F079AAB10)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NActors::TActorCallbackBehaviour::Receive(NActors::IActor*, TAutoPtr<NActors::IEventHandle, TDelete>&)+48 (0x561EFE62FAF0)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NActors::IActor::Receive(TAutoPtr<NActors::IEventHandle, TDelete>&)+66 (0x561EFE6BF402)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: bool NActors::TExecutorThread::Execute<NActors::TMailboxTable::THTSwapMailbox, false>(NActors::TMailboxTable::THTSwapMailbox*, unsigned int)+3218 (0x561EFE6C7D02)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: NActors::TExecutorThread::ThreadProc()+4347 (0x561EFE6AFA0B)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: ??+0 (0x561EFE1EAE3B)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: ??+0 (0x561EFE1ED9AF)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: ??+0 (0x7FF03B17A609)
Jan 11 09:42:56 vm-c3fiehtdc42otoo45af9-eu-north1-a-gbox-adux kikimr[942380]: clone+67 (0x7FF03B09A133)

{% endcut %}

dcherednik commented 8 months ago

https://github.com/ydb-platform/ydb/commit/504201dc0d0f8f4dced1c24fc3b077be39c7e6c8