Skip to content
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

Update lock timeout calculation on heartbeat #284

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

dfarr
Copy link
Member

@dfarr dfarr commented Apr 11, 2024

Use the reqTime to calculate the new lock timeout on hearbeat. This is not perfect as cannot know the exact tick that the server updates the database, but the assertion in the release lock validation will be correct because we err on the side of under calculating the timeout time.

Fixes #282
Fixes #283

Use the reqTime to calculate the new lock timeout on hearbeat.
This is not perfect as cannot know the exact tick that the server
updates the database, but the assertion in the release lock
validation will be correct because we err on the side of under
calculating the timeout time.
@dfarr
Copy link
Member Author

dfarr commented Apr 11, 2024

I diffed previously successful DST runs with seeds {0, 2, 3} to runs against this change and they produced the same logs. Previously unsuccessful dst run seeds {1, 31010} are fixed with this change.

@dfarr dfarr requested a review from guergabo April 11, 2024 16:52
Copy link

codecov bot commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 88.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 63.71%. Comparing base (b67b3a9) to head (57892f1).

Files Patch % Lines
test/dst/model.go 86.36% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #284   +/-   ##
=======================================
  Coverage   63.70%   63.71%           
=======================================
  Files         113      113           
  Lines        9718     9719    +1     
=======================================
+ Hits         6191     6192    +1     
  Misses       3070     3070           
  Partials      457      457           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dfarr dfarr merged commit 2054353 into main Apr 11, 2024
5 checks passed
@dfarr dfarr deleted the fix/dst-lock-hearbeat branch April 11, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DST: 31010 DST: 31010
1 participant