Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Upgrade Azure Service Bus to 5.2.0 #47

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

HenryGaoE
Copy link

Upgrades Azure Service Bus to 5.2.0, which is required for some .NET 6 upgrades.

@@ -73,7 +73,7 @@ public class AzureServiceBusQueueClient : BaseQueueClient
// This timeout is arbitrary. It is needed in order to return null
// if no messages are queued, and must be long enough to allow time
// for connection setup.
var message = await _messageReceiver.ReceiveAsync(TimeSpan.FromSeconds(10));
var message = await _messageReceiver.ReceiveAsync(TimeSpan.FromSeconds(5));
Copy link
Author

@HenryGaoE HenryGaoE Jan 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was necessary as 10 seconds was too long to return null if no messages were queued.
Based on a few tests, it was determined that 5 seconds consistently allows for null messages from empty queues to be picked up. After 6+ seconds, it was determined that it can prevent these null messages.

As stated in the comment, this is an arbitrary value and needs to be:

  1. Short enough to allow nulls
  2. Long enough to allow for connection setup.

All tests pass with this change. However, it's not possible to do local testing due to the need for Azure resources.
Therefore, I believe it's necessary to test the changes on Dev using the DealTrack API.

@HenryGaoE HenryGaoE marked this pull request as draft January 9, 2023 21:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants