-
Notifications
You must be signed in to change notification settings - Fork 2k
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]: Add RegionalRoutingContext
to encapsulate URI
.
#44398
Conversation
/azp run java - cosmos - ci |
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
64758b9
to
9b42df8
Compare
/azp run java - cosmos - ci |
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - looks good overall - just left a few questions/comments.
...cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/routing/LocationCache.java
Outdated
Show resolved
Hide resolved
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ClientRetryPolicy.java
Outdated
Show resolved
Hide resolved
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ClientRetryPolicy.java
Outdated
Show resolved
Hide resolved
...mos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/RxDocumentServiceRequest.java
Outdated
Show resolved
Hide resolved
.../azure-cosmos/src/main/java/com/azure/cosmos/implementation/ClientSideRequestStatistics.java
Outdated
Show resolved
Hide resolved
...zure-cosmos/src/main/java/com/azure/cosmos/implementation/DocumentServiceRequestContext.java
Outdated
Show resolved
Hide resolved
...cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/GlobalEndpointManager.java
Show resolved
Hide resolved
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ShouldRetryResult.java
Outdated
Show resolved
Hide resolved
...cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/routing/LocationCache.java
Outdated
Show resolved
Hide resolved
...cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/routing/LocationCache.java
Show resolved
Hide resolved
API change check APIView has identified API level changes in this PR and created following API reviews. |
...re-cosmos-tests/src/test/java/com/azure/cosmos/implementation/routing/LocationCacheTest.java
Outdated
Show resolved
Hide resolved
sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/ClientRetryPolicy.java
Show resolved
Hide resolved
...zure-cosmos/src/main/java/com/azure/cosmos/implementation/DocumentServiceRequestContext.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for few minor comments
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
...re-cosmos-tests/src/test/java/com/azure/cosmos/implementation/routing/LocationCacheTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks!
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minor suggestions, thanks!
...cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/routing/LocationCache.java
Outdated
Show resolved
Hide resolved
...ure-cosmos/src/main/java/com/azure/cosmos/implementation/routing/RegionalRoutingContext.java
Show resolved
Hide resolved
...smos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/WebExceptionRetryPolicy.java
Show resolved
Hide resolved
RegionalRoutingContext
to encapsulate URI
.
/azp run java - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Description
The objective of this PR is to add a
RegionalRoutingContext
which encapsulates aURI
instance representing the gateway regional endpoint. This is in preparation to haveRegionalRoutingContext
also encapsulate the thin-client regional endpoint along with health state of these individual endpoints.In the future, this will allow to transparently switch (w/o restarting clients) between using the thin-proxy endpoint and the Gateway endpoint in case of an issue with either.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines