Skip to content

[BUG] The retry options under the spring.cloud.azure.eventhubs.consumer are not applied correctly #35235

Open

Description

Describe the bug
The retry functionality does not work, since the below configuration will not be applied correctly when using Spring Cloud Azure Stream Binder Event Hub.

spring.cloud.azure.eventhubs.consumer.retry.mode=exponential
spring.cloud.azure.eventhubs.consumer.retry.try-timeout=2
spring.cloud.azure.eventhubs.consumer.retry.exponential.base-delay=PT1S
spring.cloud.azure.eventhubs.consumer.retry.exponential.max-delay=PT3S
spring.cloud.azure.eventhubs.consumer.retry.exponential.max-retries=3

Exception or Stack Trace
N/A

To Reproduce

  • Clone the sample
  • Add the below consumer retry options
spring:
  cloud:
    azure:
      eventhubs:
        consumer:
          retry:
            mode: exponential
            try-timeout: 2
            exponential:
              base-delay: PT1S
              max-delay: PT3S
              max-retries: 3
  • Run the app, check the options on Event Hubs client

Code Snippet
N/A

Expected behavior
The retry options should only be taken for the consumer client, maybe all Azure SDK client, and the documentation should be synced as well.

Screenshots
N/A

Setup (please complete the following information):

  • OS: Windows 11
  • IDE: IntelliJ
  • Library/Libraries: com.azure.spring:spring-cloud-azure-stream-binder-eventhubs:4.8.0
  • Java version: 17
  • Frameworks: Spring Boot 2.7.11

Additional context
The same issues may exist for client options and proxy options, as well as the Service Bus side.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuesazure-spring-docsazure-spring-eventhubsSpring event hubs related issues.azure-spring-servicebusSpring service bus related issues.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions