Commit d07c9b3
committed
[improvement](be) Default async cache writes to drop oldest
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: The locked FIFO async file-cache writer supports both reject_new and drop_oldest, but the initial default retained reject_new. Make drop_oldest the production and service-option default so newly downloaded blocks remain available to adjacent reads under queue saturation, while keeping reject_new available through the dynamic configuration for rollback and A/B comparison.
### Release note
`async_file_cache_write_queue_full_policy` now defaults to `drop_oldest`. Set it to `reject_new` to restore the previous admission behavior.
### Check List (For Author)
- Test: No need to test (default-selection-only change; both policy implementations and runtime switching are covered by existing unit tests)
- BE clang-format and check-format
- Behavior changed: Yes. Full async write queues now replace the oldest queued task by default.
- Does this need documentation: No1 parent 6e82901 commit d07c9b3
4 files changed
Lines changed: 4 additions & 3 deletions
File tree
- be
- src
- common
- io
- cache
- tools
- test/io/cache
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1286 | 1286 | | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | | - | |
| 1289 | + | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
0 commit comments