5.0.0 (2020-01-13)
Breaking changes
EventData
- Removed deprecated property
application_properties
and deprecated methodencode_message()
.
- Removed deprecated property
EventHubConsumerClient
on_error
would be called whenEventHubConsumerClient
failed to claim ownership of partitions.on_partition_close
andon_partition_initialize
would be called in the case of exceptions raised byon_event
callback.EventHubConsumerClient
would close and re-open the internal partition receiver in this case.
- Default starting position from where
EventHubConsumerClient
should resume receiving after recovering from an error has been re-prioritized.- If there is checkpoint, it will resume from the checkpoint.
- If there is no checkpoint but
starting_position
is provided, it will resume fromstarting_posititon
. - If there is no checkpoint or
starting_position
, it will resume from the latest position.
PartitionContext
update_checkpoint
would do in-memory checkpoint instead of doing nothing when checkpoint store is not explicitly provided.- The in-memory checkpoints would be used for
EventHubConsumerClient
receiving recovering.
- The in-memory checkpoints would be used for
get_partition_ids
,get_partition_properties
,get_eventhub_properties
would raise error in the case of service returning an error status code.AuthenticationError
would be raised when service returning error code 401.ConnectError
would be raised when service returning error code 404.EventHubError
would be raised when service returning other error codes.