Skip to content

[v26.1.x] storage: move call to transactional_stm_type() out of noexcept c-tor#30588

Merged
WillemKauf merged 2 commits into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30581-v26.1.x-712
May 22, 2026
Merged

[v26.1.x] storage: move call to transactional_stm_type() out of noexcept c-tor#30588
WillemKauf merged 2 commits into
redpanda-data:v26.1.xfrom
vbotbuildovich:backport-pr-30581-v26.1.x-712

Conversation

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Backport of PR #30581

…c-tor

This function call, `transactional_stm_type()`, used to just check the `_tx_stm`
status - however, now it performs a `check_status()` call, which will throw
a `gate_closed_exception()` if the `_status` is `status::shutting_down`: f935a80.

Because of this change, when this function throws (i.e. during shutdown),
the previously truly `noexcept` constructor now causes an abort of the program.

Move the call to outside of the `noexcept` constructor to prevent this race
from terminating the program.

(cherry picked from commit 58ad150)
Because why are we doing this?

(cherry picked from commit 519fcf3)
@vbotbuildovich vbotbuildovich added this to the v26.1.x-next milestone May 22, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label May 22, 2026
@vbotbuildovich vbotbuildovich requested a review from WillemKauf May 22, 2026 13:42
@WillemKauf WillemKauf enabled auto-merge May 22, 2026 13:43
@WillemKauf WillemKauf merged commit 10fea3b into redpanda-data:v26.1.x May 22, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants