question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getQueueRuntimeProperties

See original GitHub issue

When using GetQueueRuntimeProperties on a Microsoft.Azure.ServiceBus.Management.ManagementClient, I receive a runtimeInfo object with the following properties:

image

I expect the MessageCount property to equal the sum of the counts in MessageCountDetails.

The query is performed on a Premium Service Bus resource. “Microsoft.Azure.ServiceBus” Version=“5.1.3” The messages are created 2021-01-26

Service Bus Explorer shows the same discrepancy:

image

On another entity, it is correct:

image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SatishBoddu-MSFTcommented, Feb 9, 2022

Hello @23min Thanks for the detailed information on this.

We are now routing this to the right team for further action!!!

1reaction
23mincommented, Feb 9, 2022

@SatishBoddu-MSFT

Is there any difference between the 2 Queues which you are using? You may want to share if this issue is consistent with both the Queues? or it may be inconsistent.

All entities are set up identically with default properties.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ServiceBusAdministrationClient class
getQueueRuntimeProperties (string, OperationOptions). Returns an object representing the Queue runtime info like message count details. TypeScript. Copy.
Read more >
Azure Service Bus client library for JavaScript
getQueueRuntimeProperties ( queueName ); console.log("Number of messages in the queue = ", queueRuntimeProperties.
Read more >
ServiceBusAdministrationClient | @azure/service-bus
Returns an object representing the Queue and its properties. If you want to get the Queue runtime info like message count details, use...
Read more >
QueueRuntimeProperties (Azure SDK for Java Reference ...
Runtime properties about the queue. See Also: ServiceBusAdministrationAsyncClient.getQueueRuntimeProperties(String) , ServiceBusAdministrationClient.
Read more >
admin
GetQueueRuntimeProperties gets runtime properties of a queue, like the SizeInBytes, or ActiveMessageCount. If the entity does not exist this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found