Skip to content

bug: uncaught exception from RPC invocation during shutdown #34573

@dergoegge

Description

@dergoegge

The new thread pool introduced in #33689 will throw an exception (which will not be caught and lead to an unclean exit) if an RPC is called during shutdown.

2026-02-11T18:56:34Z [http:debug] Received a POST request for / from 10.89.0.6:58998
2026-02-11T18:56:34Z [http:debug] Interrupting HTTP server
2026-02-11T18:56:34Z [rpc:debug] Interrupting HTTP RPC server
2026-02-11T18:56:34Z [all:info] http_pool_1 thread exit
2026-02-11T18:56:34Z [all:info] http_pool_0 thread exit
2026-02-11T18:56:34Z [rpc:debug] Interrupting RPC
terminate called after throwing an instance of 'std::runtime_error'
  what():  No active workers; cannot accept new tasks

This was found with a test running on Antithesis.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions