orleans icon indicating copy to clipboard operation
orleans copied to clipboard

Event Hub checkpoint on shutdown

Open andrew-laughlin opened this issue 8 years ago • 2 comments

Checkpoints don't seem to occur on silo shutdown. This results in re-processing events when a silo comes back up.

Maybe EventHubQueueCache.Dispose() should call EventHubQueueCache.UpdateCheckpoint()?

andrew-laughlin avatar Aug 23 '18 22:08 andrew-laughlin

checkpointing happens whenever data in the EventHubQueueCache gets purged, which is triggered by it being older than newest data in the cache by a certain configured amount. This is to ensure EventHub Stream provider recoverability, delivering the recoverable promise configured by application code. It may happen in silo shutdown, if silo shutdown at similar time when data get purged.

Whether checkpoint happen during silo shutdown or not, shouldn't make silo re-process the events, as long as consumer isn't subscribing to an item which it already processed. Are the consumer grains persisting item sequence it already processed in any manner?

xiazen avatar Sep 25 '18 19:09 xiazen

close due to inactivity

xiazen avatar Mar 18 '19 22:03 xiazen