Skip to content

Commit ee04c1c

Browse files
[Internal]:Fixes benchmark tool to retry 500 on initialization (Azure#44634)
* Update AsyncBenchmark.java * Update cosmos-sdk-client.yml
1 parent 4106916 commit ee04c1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eng/pipelines/templates/stages/cosmos-sdk-client.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ extends:
9393
SECONDARY_ACCOUNT_KEY: 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
9494
# Increased timeout to 90 because of cosmos emulator taking 25-30 mins to download emulator
9595
# Issue filed to improve download speed: https://github.com/Azure/azure-sdk-for-java/issues/12970
96-
TimeoutInMinutes: 90
96+
TimeoutInMinutes: 120
9797
TestGoals: 'clean verify'
9898
TestOptions: '$(ProfileFlag) $(AdditionalArgs)'
9999

@@ -152,7 +152,7 @@ extends:
152152
ACCOUNT_HOST: 'http://localhost:8081/'
153153
ACCOUNT_KEY: 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
154154
SECONDARY_ACCOUNT_KEY: 'C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
155-
TimeoutInMinutes: 90
155+
TimeoutInMinutes: 120
156156
TestGoals: 'clean verify'
157157
TestOptions: '$(ProfileFlag) $(AdditionalArgs) -DACCOUNT_HOST=http://localhost:8081/ -DCOSMOS.HTTP_CONNECTION_WITHOUT_TLS_ALLOWED=true'
158158
PreSteps:

sdk/cosmos/azure-cosmos-benchmark/src/main/java/com/azure/cosmos/benchmark/AsyncBenchmark.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ abstract class AsyncBenchmark<T> {
228228
if (cosmosException.getStatusCode() == 410 ||
229229
cosmosException.getStatusCode() == 408 ||
230230
cosmosException.getStatusCode() == 429 ||
231+
cosmosException.getStatusCode() == 500 ||
231232
cosmosException.getStatusCode() == 503) {
232233
return true;
233234
}

0 commit comments

Comments
 (0)