Event Hub checkpoint on shutdown
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()?
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?
close due to inactivity