Skip to content

[EH/SB] pyAMQP retries#39037

Merged
l0lawrence merged 5 commits intoAzure:mainfrom
l0lawrence:sb_retries
Jan 24, 2025
Merged

[EH/SB] pyAMQP retries#39037
l0lawrence merged 5 commits intoAzure:mainfrom
l0lawrence:sb_retries

Conversation

@l0lawrence
Copy link
Copy Markdown
Member

@l0lawrence l0lawrence commented Jan 6, 2025

set retries to 0 to reduce time lag between pyAMQP and uAMQP retries, sdk should still retry 3 times

  • tests passing

  • stress tests

  • Go: a detach gets to the sdk level, which after investigating the error then chooses to retry (reattach link) or not

  • .NET: a detach is treated in an on-demand context, if the detach happens outside of an operation call it will be retried at the amqp stack level on demand, elsewise it will be handled by the sdk for reattaching/retrying in the context of the operation

In python our send_messages in client.py is wrapped in an amqp level do_retryable_operation. On the other hand our receive operations are not, they only have the capability to be retried at the sdk level. Due to this we at this time cannot implement link-reattach (it would only work for send) without refactoring more code and extensively testing. Creating an issue here to track this.

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

1 similar comment
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - servicebus - tests

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - servicebus - tests

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence l0lawrence changed the title [SB] pyAMQP retries [EH/SB] pyAMQP retries Jan 15, 2025
@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - eventhub - tests

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - eventhub - tests

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence
Copy link
Copy Markdown
Member Author

/azp run python - eventhub - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@l0lawrence l0lawrence marked this pull request as ready for review January 23, 2025 17:37
@l0lawrence l0lawrence merged commit 7e02ccc into Azure:main Jan 24, 2025
allenkim0129 pushed a commit to allenkim0129/azure-sdk-for-python that referenced this pull request Jan 27, 2025
* hardcode to 0

* update

* eh

* fix reconnect test to reflect retry

* remove
l0lawrence added a commit to l0lawrence/azure-sdk-for-python that referenced this pull request Feb 19, 2025
* hardcode to 0

* update

* eh

* fix reconnect test to reflect retry

* remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants