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

Aggressive warm up duration fix and sync client warm up fix #36889

Merged
merged 11 commits into from
Sep 25, 2023

Conversation

jeet1995
Copy link
Member

This PR fixes the following bugs:

  • Previously the building of a CosmosClient or CosmosAsyncClient would block until aggressive warm up duration elapses. This should not be the case when warm up can complete before this duration.
  • The CosmosClient opened connections defensively even during the warmup phase. Defensive connection establishment should only happen after the client is built.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

.withAggressiveWarmupDuration(Duration.ofMinutes(1000))
.withIsSystemPropertySetBeforeDirectConnectionConfig(false)
.withIsSyncClient(false),
new ProactiveConnectionManagementTestConfig()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we introduced faultInjection on gateway, can we also add test cases where some errors during the warm up stage - for example collection read timed out etc. - can be in a different PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tracking the work item here - #33088

sdk/cosmos/azure-cosmos/CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@xinlian12 xinlian12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

…gressiveWarmUpDurationFix

# Conflicts:
#	sdk/cosmos/azure-cosmos/CHANGELOG.md
@jeet1995
Copy link
Member Author

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jeet1995 jeet1995 enabled auto-merge (squash) September 24, 2023 17:57
@jeet1995
Copy link
Member Author

/check-enforcer override

@jeet1995 jeet1995 merged commit eec1479 into Azure:main Sep 25, 2023
56 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants