-
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
Session timeout 404/1002 HA fixes #18594
Merged
mbhaskar
merged 15 commits into
Azure:master
from
simplynaveen20:users/nakumars/HAfixes
Jan 21, 2021
+573
−11
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8598817
HA fixes
simplynaveen20 25ea739
removing extra onBefore on read request
simplynaveen20 303b7ec
incremental change in test case
simplynaveen20 409a819
incremental change in test case
simplynaveen20 8533948
ignoring warning from test case
simplynaveen20 0a5597c
fixing null pointer in test case on document producer
simplynaveen20 a1d22da
adding another test case for non preferred list
simplynaveen20 7602035
closing clients
simplynaveen20 e4e48b8
using reflection utils methods
simplynaveen20 b1cc2d0
adding 0th index for single master explicity to go to master region, …
simplynaveen20 7245918
Removing InternalObjectNode from the test case
simplynaveen20 6a93f39
Adding seperate CI for multi region and single master
simplynaveen20 b09e5be
stopping the ci
simplynaveen20 8333d76
Merge branch 'latest-master' into users/nakumars/HAfixes
simplynaveen20 c665d98
merge with master and fixing new test pipeline
simplynaveen20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,10 +136,15 @@ public DocumentProducer( | |
} catch (Exception e) { | ||
return Mono.error(e); | ||
} | ||
retryPolicy.onBeforeSendRequest(request); | ||
} | ||
|
||
DocumentClientRetryPolicy finalRetryPolicy = retryPolicy; | ||
return ObservableHelper.inlineIfPossibleAsObs( | ||
() -> { | ||
if(finalRetryPolicy != null) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great catch. thanks |
||
finalRetryPolicy.onBeforeSendRequest(request); | ||
} | ||
|
||
++retries; | ||
return executeRequestFunc.apply(request); | ||
}, retryPolicy); | ||
|
471 changes: 471 additions & 0 deletions
471
...re-cosmos/src/test/java/com/azure/cosmos/implementation/SessionNotAvailableRetryTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
sdk/cosmos/azure-cosmos/src/test/resources/multi-region-testng.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!-- | ||
~ The MIT License (MIT) | ||
~ Copyright (c) 2018 Microsoft Corporation | ||
~ | ||
~ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
~ of this software and associated documentation files (the "Software"), to deal | ||
~ in the Software without restriction, including without limitation the rights | ||
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
~ copies of the Software, and to permit persons to whom the Software is | ||
~ furnished to do so, subject to the following conditions: | ||
~ | ||
~ The above copyright notice and this permission notice shall be included in all | ||
~ copies or substantial portions of the Software. | ||
~ | ||
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
~ SOFTWARE. | ||
--> | ||
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | ||
<suite name="multi-region"> | ||
<test name="multi-region" group-by-instances="true"> | ||
<groups> | ||
<run> | ||
<include name="multi-region"/> | ||
</run> | ||
</groups> | ||
<packages> | ||
<package name="com.azure.cosmos.*"/> | ||
</packages> | ||
</test> | ||
</suite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
some of the CIs provide multi-region account to the existing test group.
Why do we need this additional test group?
also is there a specific consistency configured in the CI for the test group?
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.
We don't have any group which runs only multi-region single master. My test need that case explicitly