github Azure/azure-sdk-for-java com.azure+azure-messaging-servicebus_7.18.0-beta.2

pre-release5 hours ago

7.18.0-beta.2 (2026-06-22)

Features Added

  • Added drainTimeout(Duration) to ServiceBusProcessorClientBuilder and ServiceBusSessionProcessorClientBuilder to configure the maximum wait time for in-flight message handlers during processor shutdown. Defaults to 30 seconds.

Bugs Fixed

  • Fixed ServiceBusProcessorClient.close() disposing the receiver before in-flight message handlers could complete settlement, causing IllegalStateException. The processor now drains active handlers before closing. (#45716)
  • Fixed ServiceBusMessageBatch accepting messages beyond the service-enforced batch size limit on
    Premium large-message entities by reading the com.microsoft:max-message-batch-size vendor property
    from the AMQP sender link instead of using max-message-size. (#48214)
  • Fixed ServiceBusAdministrationClient.updateSubscription() silently ignoring defaultMessageTimeToLive changes. The property was incorrectly nullified before serialization. (#48495)

Other Changes

  • Implemented support for the com.microsoft:max-message-batch-size AMQP vendor property in
    createMessageBatch. The Service Bus service has advertised this property on sender links for some
    time to communicate the broker-enforced batch size limit; the SDK now reads it and sizes batches
    against this value, falling back to max-message-size when the property is absent. Previously the
    batch path used max-message-size directly, which on Premium large-message entities (link advertises
    up to 100 MB while the batch limit stays at 1 MB) caused the broker to reject oversized batches.
    Single-message sends (sendMessage, scheduleMessage) continue using max-message-size.
    (#48214)

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

NewReleases is sending notifications on new releases.