Skip to content

Fixed the maxConcurrency parameter summary#3

Merged
ausfeldt merged 1 commit into
Azure:masterfrom
Elfocrash:master
Dec 10, 2018
Merged

Fixed the maxConcurrency parameter summary#3
ausfeldt merged 1 commit into
Azure:masterfrom
Elfocrash:master

Conversation

@Elfocrash
Copy link
Copy Markdown
Contributor

The description for the maxConcurrency parameter was talking about the PartitionKey, probably leftovers from a previous method signature.

This PR fixes that.

@nulltoken
Copy link
Copy Markdown

@christopheranderson Are there plans to hook up a CI build to this repo?

@christopheranderson
Copy link
Copy Markdown

Yep. @ausfeldt is on it. We'll be set up to run CI and accept PRs/etc. We have a public VSTS account set up so test results/etc. can be visible.

@christopheranderson christopheranderson added bug Something isn't working community-contribution Non MSFT folks helping out labels Dec 4, 2018
@ausfeldt ausfeldt merged commit e67664a into Azure:master Dec 10, 2018
ausfeldt added a commit that referenced this pull request Mar 2, 2019
Fixed the maxConcurrency parameter summary
NaluTripician added a commit that referenced this pull request May 8, 2026
…back

Addresses review comments on PR #5829:
- #3 Renames shadowing parameters in UpdatePartitionLevelFailoverConfigWithAccountRefresh
  (isEnabled -> latestIsEnabled, disableCrossRegionalHedging -> latestDisableCrossRegionalHedging)
  so a future edit dropping a 'this.' prefix cannot silently change semantics.
- #6 Adds early-return guard when neither PPAF enablement nor the hedging flag changed,
  protecting future direct callers from spurious AvailabilityStrategy mutation.
- #5 Introduces hedgingStrategyLock and serializes the (flag, stash, ConnectionPolicy.AvailabilityStrategy)
  mutation sequence in UpdatePartitionLevelFailoverConfigWithAccountRefresh and ApplyHedgingStrategyForCurrentState,
  so concurrent invocations cannot interleave stash/clear/restore steps.
- #11 Emits a TraceWarning when ApplyHedgingStrategyForCurrentState would silently drop a non-default
  AvailabilityStrategy because a previously-stashed customer strategy is still held.
- #8 Replaces reflection-based field access in GatewayHedgingOverrideTests with internal test-only
  properties (DisableCrossRegionalHedgingForTests, CustomerConfiguredAvailabilityStrategyForTests),
  so renames are caught at compile time.
- #2 / #12 Moves the init-time flag capture and customer-strategy stash from GetInitializationTaskAsync
  into InitializeGatewayConfigurationReaderAsync, before the GEM background-refresh loop is started
  and before the change-event handler is subscribed. This eliminates the theoretical race where a
  refresh-driven event could be overwritten by a subsequent init-time field assignment, and removes
  the inconsistent null-check style.
- #10 Removes unrelated .coding-harness/ entry from .gitignore.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working community-contribution Non MSFT folks helping out

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants