Comments (8)
Thank you for your feedback. Tagging and routing to the team member best able to assist.
from azure-sdk-for-net.
@michael-eckhart-woellkart : By service contract, the Service Bus service will return a MessagingEntityNotFound
response if a queue does not exist. The client reflects this error. In your case, you are seeing timeouts because the client was unable to create a connection, authorize, create an AMQP link, and send the data within the 10 seconds that you provided when overriding the default TryTimeout
.
As a result, the end-to-end service operation did not complete, the service did not send its error response, and the client was therefore unable to observe and surface it. To verify the behavior, I'd suggest testing without changing the default TryTimeout
and using a single ServiceBusSender
instance.
from azure-sdk-for-net.
Hi @michael-eckhart-woellkart. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-net.
Hi @jsquire, thanks for the very fast response.
I just put the timeout to 10 seconds for testing, productive we use the default timeout and still have this issue (there we have more queues) and I think it should not be normal that checking if there is a queue takes more then 30 seconds.
One ServiceBusSender
does not work, as the ServiceBusSender
is only for one queue, and we have a lot of different queues.
from azure-sdk-for-net.
/unresolve
from azure-sdk-for-net.
@michael-eckhart-woellkart: You're sharing one connection across all of your senders, which is going to cause queueing of traffic to occur. You're also starting a large number of background processes, each of which are highly asynchronous and need to be scheduled. As there are no fairness guarantees with thread pool scheduling, it is possible that some of these will be waiting for a while. Much depends on your host environment. All of this is unrelated to the Azure SDK packages - it's how the .NET runtime and network stack work.
Depending on the state of your network, potential transient errors, and similar, it can sometimes take 30-60 seconds to establish the connection, perform auth, open an AMQP link, and complete a service operation. Given that your sample shares a connection, all of your senders are blocked on the first two steps completing, and then they'll race to complete the latter two. All of those stages are highly asynchronous and will be fighting for time to complete.
As stated, to test the base error condition, use a single sender pointed at a queue that does not exist and use the default TryTimeout
.
With respect to your scenario, if you are seeing timeouts that indicates that you are trying to do too much at once and the TryTimeout
is inadequate due to your high degree of concurrency. To mitigate this, I'd suggest either revising your implementation to control concurrency to a degree that is appropriate for your host environment or upping the TryTimeout
to a value that allows all of those concurrent operations to complete.
from azure-sdk-for-net.
Hi @michael-eckhart-woellkart. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-net.
Hi @michael-eckhart-woellkart, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
from azure-sdk-for-net.
Related Issues (20)
- Invalid Zero Length check expression HOT 3
- AzurePowerShellCredential fails to generate token due to deprecation message in Az 12.1.0 HOT 1
- [BUG] Blobs with names containing nameless virtual folders are not handled consistently in the SDK HOT 1
- [BUG] Azure.ResourceManager.ResourceGraph 1.0.1 isn't querying correct tenant HOT 2
- [QUERY] Unexpected query results HOT 2
- [Question] SASUrl compatibility HOT 2
- Support for Manager Identity modification HOT 2
- [BUG] ResourceManager.AppService error HOT 2
- [QUERY] How to properly mock extensions methods for ArmClient HOT 7
- Microsoft.Azure.ServiceBus MessageHandlerOptions max retry HOT 4
- IMDS probe requests should throw CredentialUnavailableException for any response that is not valid json
- [QUERY] Is it possible to register different ServiceBus clients in DI with different authentication type HOT 4
- [FEATURE REQ] Azure Monitor Distro - Metrics like CPU and available memory HOT 3
- Ref docs issue HOT 1
- Possible Memory leak when downloading blobs HOT 2
- [BUG] Azure Storage client experiencing culture issues HOT 3
- [BUG] EventHub trigger cannot receive Kafka produced events when function parameter is of type EventData or EventData[] HOT 14
- Please provide documentation with examples HOT 1
- Consider removing dependency on System.Security.Cryptography.ProtectedData HOT 4
- // C# record type for items in the container public record Product( string id, string category, string name, int quantity, bool sale ); HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.