Conversation
|
This is an automated comment for commit 235980d with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
2801c0f to
3fd9f85
Compare
060c9a1 to
f80f61c
Compare
…to filecache-small-optimization
| const auto & entry = it->getEntry(); | ||
| UNUSED(entry); | ||
| chassert(entry->size == reserved_size); | ||
| if (download_state != State::DOWNLOADING && entry->size != reserved_size) |
There was a problem hiding this comment.
This additional check for download_state fixes #55867.
There was a problem hiding this comment.
just for my information, why it cannot be e.g. PARTIALLY_DOWNLOADED_NO_CONTINUATION?
There was a problem hiding this comment.
In tryReserve we first update entry->size and right after reserved_size, which is done under cache lock (which is priority queue lock). But here in assertCacheCorrectness this lock is not taken, so it can see entry->size != reserved_size. As tryReserve is executing while file segment has DOWNLOADING state, therefore I added this check. PARTIALLY_DOWNLOADED_NO_CONTINUATION does not apply to the described case.
|
| const auto & entry = it->getEntry(); | ||
| UNUSED(entry); | ||
| chassert(entry->size == reserved_size); | ||
| if (download_state != State::DOWNLOADING && entry->size != reserved_size) |
There was a problem hiding this comment.
just for my information, why it cannot be e.g. PARTIALLY_DOWNLOADED_NO_CONTINUATION?
Changelog category (leave one):
Closes #55867.