Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-features] Adding VMSS option to Force Deletion Query Parameter for Resource Group Delete #3369

Closed

Conversation

openapi-sdkautomation[bot]
Copy link

Create to sync Azure/azure-rest-api-specs#12630

Installation Instructions

You can install the package @azure/arm-features of this PR using the following command:

curl -L "https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/12630/azure-sdk-for-js/@azure_arm-features/azure-arm-features-1.0.3.tgz" -o azure-arm-features-1.0.3.tgz
npm install azure-arm-features-1.0.3.tgz

Direct Download

The generated package can be directly downloaded from here:

HarshaNalluru and others added 2 commits January 26, 2021 01:54
## Bug
- `receiveMessages` method returned zero messages upon a connection refresh caused by a network disconnect(simulated in the test). 
- `OperationTimeout` error on message settlement after the disconnect

These two failures made the "disconnect" test occasionally fail for the batching receiver.

## Cause
`onDetached` on the batchReceivers is called 300ms after the connection refresh causing the recovered receive link to be closed.

- If the message returned from the service took close to 300ms until reached the receiver since the refresh, `onDetached` is called to close the link leading to the loss of messages.
- If the 300ms had elapsed right before the settlement, we'd see the OperationTimeout error on settlement since the receive link is closed.

Investigated here Azure#13339

## Fix
- Call `onDetached` for the batching receivers before calling the refresh connection
- And retain calling `onDetached` for the streaming receivers after the refresh connection

## Changes in the PR
- [x] Refactored "calling onDetached" part
- [x] Removed the 300ms delay since we don't see the utility
- [x] Changelog
- [x] TODO: What to do for sessions?
   - [x] Needs more investigation Azure#13374 (comment), will be handled at Azure#8875
Merge 89bb404e430b977158a034f57c73ab19392ae06c into 9022265e19ebe2fa6c1955f6d99a51203897bf3d
@openapi-sdkautomation openapi-sdkautomation bot force-pushed the sdkAuto/12630/@azure_arm-features branch 2 times, most recently from fb8eabd to 38da193 Compare January 26, 2021 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant