Commit 3f3e811
committed
cloud_topics/stm: bound the prefix-truncate wait for tiered_cloud
prefix_truncate_bg waits on _lro_advanced without a timeout once a
partition is caught up with no active readers, on the assumption that
only a reconciliation advance (which signals _lro_advanced) can create
new truncation work.
That holds for storage.mode=cloud, but not for tiered_cloud: space
management sets _cloud_gc_offset via set_cloud_gc_offset, raising the
truncation target without signalling _lro_advanced. An idle tiered_cloud
partition with a quiescent LRO would sleep through it and not reclaim
until the next write.
Exclude tiered_cloud from the untimed wait so it polls on
retry_backoff_time and observes the offset; other modes keep the
zero-wakeup untimed wait.
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>1 parent 3810690 commit 3f3e811
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
137 | | - | |
| 137 | + | |
| 138 | + | |
138 | 139 | | |
139 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
0 commit comments