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

[Event Hubs] Geo DR - Preview v2 #43973

Merged
merged 12 commits into from May 12, 2024

Conversation

m-redding
Copy link
Member

@m-redding m-redding commented May 10, 2024

Contributes to #39367

The concepts being updated here all relate to the Event Hubs service no longer accepting numeric values for offset. Offset needs to be treated an opaque string.

---An alternative approach can be found in:---

The primary changes in this PR are the following:

  • EventData.Offset is now a string, constructor now takes in a string
  • EventData.LastPartitionOffset is now a string and takes in a string
  • EventPosition.FromOffset takes in a string value
  • LastEnqueuedEventProperties.Offset is now a string
  • Add CheckpointPosition.Offset and new constructor
  • EventHubsModelFactory - EventData and LastEnqueuedEventProperties need to be created with string values for offsets.

@m-redding m-redding changed the title [Event Hubs] Geo DR - Preview v2: With breaking change [Event Hubs] Geo DR - Preview v2 May 10, 2024
@m-redding
Copy link
Member Author

TODO:

  • Hide old checkpoint overloads
  • Add changelog entry

@m-redding m-redding marked this pull request as ready for review May 10, 2024 17:49
Copy link
Member

Choose a reason for hiding this comment

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

We should change the type in the UpdateCheckpointAsync overload as well on L369.

sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md Outdated Show resolved Hide resolved
m-redding and others added 6 commits May 10, 2024 17:56
…ntStore/BlobCheckpointStoreInternal.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
…ntHubs.csproj

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
…tPosition.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
…tPosition.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
@m-redding m-redding merged commit ba8b316 into Azure:eventhubs-geodr-preview-2 May 12, 2024
34 of 37 checks passed
jsquire added a commit to jsquire/azure-sdk-for-net that referenced this pull request May 17, 2024
* primary changes

* fix build

* run scripts

* fix unit tests

* additional test tweaks

* changelog

* Update sdk/eventhub/Azure.Messaging.EventHubs.Shared/src/BlobCheckpointStore/BlobCheckpointStoreInternal.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/src/Azure.Messaging.EventHubs.csproj

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/src/Processor/CheckpointPosition.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/src/Processor/CheckpointPosition.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* forgot to bring some things from the other preview pr

---------

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
jsquire added a commit that referenced this pull request May 17, 2024
* primary changes

* fix build

* run scripts

* fix unit tests

* additional test tweaks

* changelog

* Update sdk/eventhub/Azure.Messaging.EventHubs.Shared/src/BlobCheckpointStore/BlobCheckpointStoreInternal.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/CHANGELOG.md

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/src/Azure.Messaging.EventHubs.csproj

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/src/Processor/CheckpointPosition.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* Update sdk/eventhub/Azure.Messaging.EventHubs/src/Processor/CheckpointPosition.cs

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>

* forgot to bring some things from the other preview pr

---------

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants