You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [Event Hubs] Change trigger checkpointing behavior
The focus of these changes is to change the behavior
of the Event Hubs trigger to not checkpoint when the
listener is shutting down. This is necessary to
prevent potential data loss from occurring when
shutting down Function retries. Because the trigger
cannot know if the Function host would have retried
a failure if it were not shutting down, we cannot
assume that it is safe to checkpoint. This change
ensures that the batch of events being processed
when shut down was requested will be retried by
another instance or the next time the Function app
is run. Though this may cause duplicate processing,
it is consistent with the Event Hubs at-least-once
guarantee.
Copy file name to clipboardExpand all lines: sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@
10
10
11
11
### Other Changes
12
12
13
+
- Adjusted checkpointing logic to no longer write a checkpoint when the listener is shutting down. This was necessary to prevent potential data loss from occurring when shutting down Function retries. Because the trigger cannot know if the Function host would have retried a failure if it were not shutting down, we cannot assume that it is safe to checkpoint. This change ensures that the batch of events being processed when shut down was requested will be retried by another instance or the next time the Function app is run.
14
+
13
15
- Updated the `Azure.Messaging.EventHubs`, which includes a new build of the AMQP transport library. The notable bug fix addresses an obscure race condition when a cancellation token is signaled while service operations are being invoked concurrently which caused those operations to hang.
Copy file name to clipboardExpand all lines: sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/src/Listeners/EventHubListener.PartitionProcessor.cs
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ internal class PartitionProcessor : IEventProcessor, IDisposable
0 commit comments