-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(cache): fix dedup error of meta-cache #6483
fix(cache): fix dedup error of meta-cache #6483
Conversation
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Should we encapsulate this logic in |
size: (sst.file_size - sst.meta_offset) as usize, | ||
}; | ||
async move { | ||
let now = Instant::now(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can use minstant::Instant
Codecov Report
@@ Coverage Diff @@
## main #6483 +/- ##
========================================
Coverage 73.94% 73.94%
========================================
Files 981 982 +1
Lines 159159 160121 +962
========================================
+ Hits 117690 118406 +716
- Misses 41469 41715 +246
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
For example, // Somebody else (a future containing `get_with`/`try_get_with`)
// has been aborted.
WaiterValue::EnclosingFutureAborted => {
retries += 1;
panic_if_retry_exhausted_for_aborting(retries, MAX_RETRIES);
// Retry from the beginning.
continue;
} |
Good point. It is better to put the logic in the implementation of |
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
Done |
Signed-off-by: Little-Wallace bupt2013211450@gmail.com
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:
Checklist
./risedev check
(or alias,./risedev c
)Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes
Please keep the types that apply to your changes, and remove those that do not apply.
Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
Refer to a related PR or issue link (optional)