redpanda
redpanda copied to clipboard
[v23.2.x] cluster/tests: add test case for eviction of the tx coordinator
Backport of https://github.com/redpanda-data/redpanda/pull/17379 Fixes https://github.com/redpanda-data/redpanda/issues/17393
CONFLICT:
- different CMakeLists surroundings
We've seen in older versions of Redpanda that despite the 'delete' cleanup policy being enabled, eviction may not be triggered. This is because in older versions of Redpanda[1], we would not register the eviction STM for tx coordinator partitions.
[1] https://github.com/redpanda-data/redpanda/blob/3ce012f9ccb64810eafcc4b8b2e0df7340172879/src/v/cluster/partition.cc#L446-L471
(cherry picked from commit 761dfe987b3e4a97016ecbe966cc55c432aab3df) (cherry picked from commit c45abbd95b63f292dac5ae798d572d3ff391c82c)
Backports Required
- [ ] none - not a bug fix
- [x] none - this is a backport
- [ ] none - issue does not exist in previous branches
- [ ] none - papercut/not impactful enough to backport
- [ ] v23.3.x
- [ ] v23.2.x
Release Notes
- none
/ci-repeat 1