redpanda
redpanda copied to clipboard
txn coordinator: gate tm_stm for long txn operations
Cover letter
It should fix a use-after-free problem caused by tm_stm shutdown interweaving with end_txn
Fixes #6329
Backport Required
- [ ] not a bug fix
- [ ] issue does not exist in previous branches
- [x] papercut/not impactful enough to backport
- [ ] v22.2.x
- [ ] v22.1.x
- [ ] v21.11.x
Release notes
- none
UpgradeBackToBackTest.test_upgrade_with_all_workloads https://github.com/redpanda-data/redpanda/issues/6399 (new issue, isn't related to the change)
investigating the issue there