Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Better handling of issues caused by time traveling (DownloadTask) (DEV) #2018

Merged
merged 3 commits into from
Jan 4, 2021

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Dec 31, 2020

Likely unrelated, but noticed while debugging #2001.

This adds additional checks to handle issues caused by time traveling gracefully.

We change the check "did we already perform an exposure detection in recent time" (24/checksPerDay), to be skipped if the timestamp of the last check is more than 2 hours in the future.

maxExposureDetectionsPerDay is checked separately and will abort the download task if necessary.
…ck that causes it to not skip, if the last detection was in our future.
@d4rken d4rken added the maintainers Tag pull requests created by maintainers label Dec 31, 2020
@d4rken d4rken added this to the 1.11.0 milestone Dec 31, 2020
@d4rken d4rken requested review from chiljamgossow and a team December 31, 2020 14:37
@d4rken d4rken changed the title Better handling of issues caused by time traveling (DEV) Better handling of issues caused by time traveling (DownloadTask) (DEV) Dec 31, 2020
@mtwalli mtwalli self-assigned this Jan 4, 2021
@ralfgehrer ralfgehrer self-assigned this Jan 4, 2021
@sonarcloud
Copy link

sonarcloud bot commented Jan 4, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

81.2% 81.2% Coverage
0.0% 0.0% Duplication

@ralfgehrer ralfgehrer merged commit e2dfb42 into release/1.11.x Jan 4, 2021
@ralfgehrer ralfgehrer deleted the fix/limit-time-traveling-damage branch January 4, 2021 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
maintainers Tag pull requests created by maintainers
Development

Successfully merging this pull request may close these issues.

None yet

3 participants