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

[Internal] Direct Package Upgrade: Refactors Code to Bump Up Cosmos.Direct Package to 3.34.0 #4477

Conversation

kundadebdatta
Copy link
Member

@kundadebdatta kundadebdatta commented May 9, 2024

Pull Request Template

Description

This PR bumps up the Cosmos.Direct package version to 3.34.0 which is released on top of EN20240415 release. In a nut-shell, the change is focused on reducing the number of barrier requests issued for Global Strong in the Microsoft Azure Documents project.

The fix modifies the logic for issuing barrier requests, introducing a delay mechanism to reduce the number of requests and improve efficiency. The changes also include additional status codes for better error handling.

  • In QuorumReader.cs, the retry loop logic has been modified to include a delay mechanism based on the defaultBarrierRequestDelays array and remainingDelay variable. The logic for handling responses has also been updated.

  • In BarrierRequestHelper.cs, new methods have been added to determine if a delay should be injected before the first barrier request and between barrier requests based on the responses to previous barrier requests.

  • In ConsistencyWriter.cs, the WaitForWriteBarrierAsync method now includes a delay before the first barrier request and between barrier requests.

  • In StatusCodes.cs, new status codes have been added to handle different scenarios when the targeted LSN/GCLSN is missed.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

Closing issues

To automatically close an issue: closes #IssueNumber

@kundadebdatta kundadebdatta marked this pull request as ready for review May 9, 2024 19:34
@kundadebdatta kundadebdatta self-assigned this May 9, 2024
@kundadebdatta kundadebdatta added the auto-merge Enables automation to merge PRs label May 9, 2024
@kirankumarkolli
Copy link
Member

Can we list the release notes that needs to go in?

Fabians changes are in this direct right?

@microsoft-github-policy-service microsoft-github-policy-service bot merged commit 233390d into master May 9, 2024
21 checks passed
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the users/kundadebdatta/upgrade_direct_package branch May 9, 2024 22:25
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants