Skip to content

[service-bus] Automatically renew message locks when using receiveMessages or getMessageIterator#11658

Merged
richardpark-msft merged 16 commits intoAzure:masterfrom
richardpark-msft:richardpark-sb-track2-autolocks-iterator
Oct 6, 2020
Merged

[service-bus] Automatically renew message locks when using receiveMessages or getMessageIterator#11658
richardpark-msft merged 16 commits intoAzure:masterfrom
richardpark-msft:richardpark-sb-track2-autolocks-iterator

Conversation

@richardpark-msft
Copy link
Copy Markdown
Member

This PR expands the scope of auto-renewal to also include messages received via receiveMessages or getMessageIterator (previously this was only available when you used subscribe).

Fixes #11442

@richardpark-msft
Copy link
Copy Markdown
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@ramya-rao-a
Copy link
Copy Markdown
Contributor

/azp run js - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

richardpark-msft and others added 12 commits October 6, 2020 10:11
… at least one test and for compatibility having it off is simpler. We can revisit later - there is coverage for this case in renewLock.spec.ts so it's not untested.
There were a few tests that were relying on the fact that batching didn't use to renew locks (it does now). Changed so each test creates their own receiver, rather than re-using a single one for all tests.
…The renewer already has a great log message in place.
Co-authored-by: Ramya Rao <ramya.rao.a@outlook.com>
@richardpark-msft
Copy link
Copy Markdown
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@richardpark-msft
Copy link
Copy Markdown
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@richardpark-msft
Copy link
Copy Markdown
Member Author

/azp run js - servicebus

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@richardpark-msft
Copy link
Copy Markdown
Member Author

/azp run js - servicebus - ci

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@richardpark-msft richardpark-msft merged commit 1160825 into Azure:master Oct 6, 2020
@richardpark-msft richardpark-msft deleted the richardpark-sb-track2-autolocks-iterator branch October 6, 2020 23:08
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.

[service-bus] Make auto-lock renewable usable outside of subscribe()

3 participants