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

UserAgent: Fixes race condition in ClientId and max value for UserAgentString #2574

Merged
merged 6 commits into from
Jun 25, 2021

Conversation

asketagarwal
Copy link
Contributor

@asketagarwal asketagarwal commented Jun 23, 2021

Issue introduced in #2552

The cap on the ClientId was removed in the above PR, as a result there was a increase in size of the Kusto tables.
The ClientId is also being made thread safe by introducing a clientId ref for every CosmosClient instance

@asketagarwal asketagarwal changed the title UserAgent: Capping ClientId in UserAgentString UserAgent: Fixes ClientId in UserAgentString Jun 23, 2021
Copy link

@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.

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

@github-actions github-actions bot dismissed their stale review June 23, 2021 20:41

All good!

Copy link
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

j82w
j82w previously approved these changes Jun 24, 2021
j82w
j82w previously approved these changes Jun 24, 2021
ealsur
ealsur previously approved these changes Jun 24, 2021
Copy link
Member

@ealsur ealsur left a comment

Choose a reason for hiding this comment

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

Nothing blocking, just wondering on how the clientId is being used inside UserAgentContainer.

@asketagarwal asketagarwal dismissed stale reviews from ealsur and j82w via 67d3130 June 24, 2021 15:09
@j82w j82w changed the title UserAgent: Fixes ClientId in UserAgentString UserAgent: Fixes race condition in ClientId and max value for UserAgentString Jun 25, 2021
@j82w j82w merged commit fd1b2b6 into master Jun 25, 2021
@j82w j82w deleted the users/askagarw/clientIdFix branch June 25, 2021 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants