Skip to content
Snippets Groups Projects
Unverified Commit 8197f911 authored by Jakob Möller's avatar Jakob Möller Committed by GitHub
Browse files

Remove Cache Clearing to reduce CDN load on failing devices (EXPOSUREAPP-2405) (#1108)


* Remove Cache Clearing to reduce CDN load on failing devices. This ideally needs to be accompanied by a way to clear the cache manually and a way to identify more root causes of Transaction Failures.

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>

* Remove Files that failed for Key Retrieval

Only Remove Files from Cache that failed to download, instead of every file. This is accompanied ideally by no rollback in the Key Retrieval. We only delete the cache ref, the file will not be deleted as it is considered not present

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>

* Introduce dedicated QuotaCalculator for Unit Testing

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>

* Refactor QuotaCalculator for LocalData Property Access and Write Tests

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>

* Use Instant on the Device Read since this is not timezone specific

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>

* Add specific state for the quota calculation and dedicated rollback

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>

* PR Comments

Signed-off-by: default avatard067928 <jakob.moeller@sap.com>
parent 8857ab08
No related branches found
No related tags found
No related merge requests found
Showing
with 523 additions and 20 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment