-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
change time point calculate in ttl #4683
Conversation
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.
Good,thx
Codecov ReportBase: 84.69% // Head: 84.73% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4683 +/- ##
==========================================
+ Coverage 84.69% 84.73% +0.04%
==========================================
Files 1358 1358
Lines 135674 135801 +127
==========================================
+ Hits 114911 115077 +166
+ Misses 20763 20724 -39
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@shanlai Tell me if you have verified it~ |
ad0a5a4
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.
Good job
88eb042
* change time point calculate in ttl * fix ttl test * enlarge the ttl sleep interval in the test * fix ttl in index * Revert "enlarge the ttl sleep interval in the test" This reverts commit e37bf51. * change wall time in mock data Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
* optimize for the last step of go n steps plan (#4690) * optimize for the last step of go n steps plan * improve some comments * change time point calculate in ttl (#4683) * change time point calculate in ttl * fix ttl test * enlarge the ttl sleep interval in the test * fix ttl in index * Revert "enlarge the ttl sleep interval in the test" This reverts commit e37bf51. * change wall time in mock data Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com> * fix graph crash (#4698) * fix_ambiguous_case (#4701) * fix_ambiguous_case * change in any order to in order' * fix map hash method (#4707) Co-authored-by: jie.wang <38901892+jievince@users.noreply.github.com> Co-authored-by: pengwei.song <90180021+pengweisong@users.noreply.github.com> Co-authored-by: jimingquan <mingquan.ji@vesoft.com>
@critical27 Verification passed |
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Description:
When insert ttl field with now() which is calculated by time(NULL). When check if the ttl field valid, we use time::WallClock before, which will drift from time(NULL) with time going.
How do you solve it?
both use time(NULL)
Special notes for your reviewer, ex. impact of this fix, design document, etc:
Checklist:
Tests:
Affects:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: