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

Internal PartitionKeyRangeCache: Adds RID refresh on NotFound in GetRoutingMapAsync #2096

Merged
merged 3 commits into from
Dec 31, 2020

Conversation

fnarenji
Copy link
Contributor

@fnarenji fnarenji commented Dec 27, 2020

Pull Request Template

Description

In GetRoutingMapAsync, we read the RID from cache & then look up the associated collection routing map.
In the case where the RID is stale & the collection routing map is not found, the stale RID should be invalidated & the operation retried.

I am also switching a method written using ContinueWith to be async instead as I found during testing that this style can cause AggregateException to be thrown which callers do not typically expect (e.g. a NotFound would end up as a 500 because of that).

Triage source is CRI.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #IssueNumber

@fnarenji fnarenji force-pushed the users/flnarenj/sdk/pkrcrefresh branch from 1921e6d to 397e91e Compare December 30, 2020 08:50
@fnarenji fnarenji force-pushed the users/flnarenj/sdk/pkrcrefresh branch from 397e91e to 957c186 Compare December 30, 2020 08:51
@fnarenji fnarenji changed the title Internal PartitionKeyRangeCache: Adds force refresh on GetRoutingM… Internal PartitionKeyRangeCache: Adds RID refresh on NotFound in GetRoutingMapAsync Dec 30, 2020
j82w
j82w previously approved these changes Dec 30, 2020
Signed-off-by: Floran Narenji <flnarenj@microsoft.com>
@j82w j82w merged commit 3172a1a into master Dec 31, 2020
@j82w j82w deleted the users/flnarenj/sdk/pkrcrefresh branch December 31, 2020 13:46
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.

None yet

2 participants