Skip to content

Commit 36e7d11

Browse files
authored
Merge pull request #29804 from bharathv/fix_ct_crash
cluster/rm_stm: do not apply raft snapshot after stopping
2 parents e8aed00 + 9059543 commit 36e7d11

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/v/cluster/rm_stm.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,6 +2332,7 @@ rm_stm::take_raft_snapshot(model::offset last_included_offset) {
23322332
}
23332333

23342334
ss::future<> rm_stm::apply_raft_snapshot(const iobuf& buf) {
2335+
auto holder = _gate.hold();
23352336
auto local_buf = buf.copy();
23362337
auto units = co_await _state_lock.hold_write_lock();
23372338
vlog(

0 commit comments

Comments
 (0)