Commit 03bdc56
committed
storage: include tiered_cloud partitions in disk space management
tiered_cloud partition local logs were excluded from the disk space
manager, so they were never reclaimed under disk pressure. A new
is_cloud_gc_active() predicate (archival retention or tiered_cloud) gates
the space manager's reclaim paths, so tiered_cloud partitions are now
collected below the reconciled L1 offset, like legacy tiered storage.
Also updates disk_log_impl::compute_gc_offset to reset the space management
GC hint on every invocation where it is present.
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>1 parent 3103408 commit 03bdc56
3 files changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
1318 | 1322 | | |
1319 | 1323 | | |
1320 | 1324 | | |
| |||
1921 | 1925 | | |
1922 | 1926 | | |
1923 | 1927 | | |
1924 | | - | |
| 1928 | + | |
1925 | 1929 | | |
1926 | 1930 | | |
1927 | 1931 | | |
| |||
3921 | 3925 | | |
3922 | 3926 | | |
3923 | 3927 | | |
3924 | | - | |
| 3928 | + | |
3925 | 3929 | | |
3926 | 3930 | | |
3927 | 3931 | | |
| |||
3937 | 3941 | | |
3938 | 3942 | | |
3939 | 3943 | | |
3940 | | - | |
3941 | | - | |
| 3944 | + | |
| 3945 | + | |
3942 | 3946 | | |
3943 | 3947 | | |
3944 | 3948 | | |
| |||
4279 | 4283 | | |
4280 | 4284 | | |
4281 | 4285 | | |
4282 | | - | |
4283 | | - | |
| 4286 | + | |
| 4287 | + | |
4284 | 4288 | | |
4285 | 4289 | | |
4286 | 4290 | | |
| |||
4313 | 4317 | | |
4314 | 4318 | | |
4315 | 4319 | | |
4316 | | - | |
| 4320 | + | |
4317 | 4321 | | |
4318 | 4322 | | |
4319 | 4323 | | |
| |||
4338 | 4342 | | |
4339 | 4343 | | |
4340 | 4344 | | |
4341 | | - | |
| 4345 | + | |
4342 | 4346 | | |
4343 | 4347 | | |
4344 | 4348 | | |
| |||
4540 | 4544 | | |
4541 | 4545 | | |
4542 | 4546 | | |
4543 | | - | |
| 4547 | + | |
4544 | 4548 | | |
4545 | 4549 | | |
4546 | 4550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
425 | 429 | | |
426 | 430 | | |
427 | 431 | | |
| |||
0 commit comments