Skip to content

[Internal] Thin Client Integration: Fixes config refresh and gateway mode check.#5115

Merged
kirankumarkolli merged 2 commits intomasterfrom
users/aavasthy/FixConfigRefresh
Apr 9, 2025
Merged

[Internal] Thin Client Integration: Fixes config refresh and gateway mode check.#5115
kirankumarkolli merged 2 commits intomasterfrom
users/aavasthy/FixConfigRefresh

Conversation

@aavasthy
Copy link
Copy Markdown
Contributor

@aavasthy aavasthy commented Apr 8, 2025

Pull Request Template

Description

Fixing two issues found during testing:

  • Fixing the issue of getting thinclient readable and writeable locations through ParseThinClientLocationsFromAdditionalProperties. Need this call at GlobalEndpointManager. InitializeAccountPropertiesAndStartBackgroundRefresh() stage as well otherwise the returned endpoint returned is a stale value.

  • Fixing the thinclient mode check so that if thinclient flag is enabled then thinclient mode is be used during gateway mode and direct mode.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #5116

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

All good!

@aavasthy aavasthy changed the title Fix config refresh and gateway mode check. [Internal] Thin Client Integration: Fixes config refresh and gateway mode check. Apr 8, 2025
kundadebdatta
kundadebdatta previously approved these changes Apr 8, 2025
Copy link
Copy Markdown
Member

@kundadebdatta kundadebdatta left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment thread Microsoft.Azure.Cosmos/src/DocumentClient.cs Outdated
Copy link
Copy Markdown
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM - Thx

@aavasthy aavasthy self-assigned this Apr 8, 2025
@kirankumarkolli kirankumarkolli merged commit 2687d7b into master Apr 9, 2025
27 checks passed
@kirankumarkolli kirankumarkolli deleted the users/aavasthy/FixConfigRefresh branch April 9, 2025 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Enables automation to merge PRs thin-client-integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Internal] Thin Client Integration: Fix account properties refresh logic during thinclient mode.

4 participants