yugabyte/yugabyte-db

[DocDB] AsyncClientInitializer does not set promise on early shutdown

Open

#21,316 建立於 2024年3月5日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)C (1,003 fork)batch import
area/docdbgood first issuekind/bugpriority/medium

倉庫指標

Star
 (8,229 star)
PR 合併指標
 (平均合併 17天 21小時) (30 天內合併 92 個 PR)

描述

Jira Link: DB-10220

Description

if we try to gracefully shutdown before the client is Initialized then we will hang waiting on Future::Get. This is because async client initializer does not set the promise if we shutdown before the client is ready. Instead we should return Result<YbClient*> and set bad status on shutdown. Not a production issue since we don't shutdown gracefully anyway.

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

貢獻者指南