Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Bug: Getting Access Request Results from Cache #1348

Closed
pattisdr opened this issue Sep 19, 2022 · 0 comments · Fixed by #1349
Closed

Bug: Getting Access Request Results from Cache #1348

pattisdr opened this issue Sep 19, 2022 · 0 comments · Fixed by #1349
Assignees
Labels
bug Something isn't working

Comments

@pattisdr
Copy link
Contributor

pattisdr commented Sep 19, 2022

Bug Description

When retrying a privacy request from failure, it is possible that we retrieve some erasure counts instead of access results for some of the collections.

This bug is unlikely to have been hit so far, but could result in the incorrect values being returned for an access request.

Steps to Reproduce

  1. Do this...
  2. Then This...

Expected behavior

A description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • Version:
  • OS:
  • Python Version:
  • Docker Version:

Additional context

Add any other context about the problem here.

@pattisdr pattisdr added the bug Something isn't working label Sep 19, 2022
@pattisdr pattisdr self-assigned this Sep 19, 2022
sanders41 pushed a commit that referenced this issue Sep 20, 2022
#1349)

* Fix bug where erasure count confirmations may be returned instead of selected access request results when attempting to get access requests from the cache.

Because erasure requests are run after access requests, there normally isn't erasure results in the cache when we attempt to get access results.  However, if we were retrying a privacy request from a checkpoint that had already erased data, we could possibly return erasure results instead of access results, depending on if the access or erasure key was accessed last.

* Update CHANGELOG.
sanders41 pushed a commit that referenced this issue Sep 22, 2022
#1349)

* Fix bug where erasure count confirmations may be returned instead of selected access request results when attempting to get access requests from the cache.

Because erasure requests are run after access requests, there normally isn't erasure results in the cache when we attempt to get access results.  However, if we were retrying a privacy request from a checkpoint that had already erased data, we could possibly return erasure results instead of access results, depending on if the access or erasure key was accessed last.

* Update CHANGELOG.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant