github Azure/azure-sdk-for-python azure-eventhub_5.0.0

latest releases: azure-cognitiveservices-language-textanalytics_0.2.2, azure-cognitiveservices-anomalydetector_0.3.1, azure-communication-callautomation_1.2.0...
4 years ago

5.0.0 (2020-01-13)

Breaking changes

  • EventData
    • Removed deprecated property application_properties and deprecated method encode_message().
  • EventHubConsumerClient
    • on_error would be called when EventHubConsumerClient failed to claim ownership of partitions.
    • on_partition_close and on_partition_initialize would be called in the case of exceptions raised by on_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 from starting_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.
  • 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.

Don't miss a new azure-sdk-for-python release

NewReleases is sending notifications on new releases.