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

SQL-Watch does not count secondary not readable replicas #461

Open
hvoges opened this issue Oct 6, 2022 · 3 comments
Open

SQL-Watch does not count secondary not readable replicas #461

hvoges opened this issue Oct 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@hvoges
Copy link

hvoges commented Oct 6, 2022

Describe the bug
SQL-Watch does not count non-readable Replicas on Always On Clusters.

To Reproduce
Run select * from dbo.sqlwatch_meta_database on a secondary Replica with offline Replicas. There are no Entries for the Replicas, and as a result, they are not accounted for.

Expected behavior
Mirrored Offline-Databases should be counted, especially as they use diskspace.

Screenshots
image

Windows Server (please complete the following information):

  • OS Version: Windows Server 2016

SQL Server (please complete the following information):

  • SQL Version: SQL Server 2017
  • SQL Edition: Enterprise

SQL Server Management Studio (SSMS -> about -> copy info):
SQL Server Management Studio 15.0.18424.0
SQL Server Management Objects (SMO) 16.100.47021.0+7eef34a564af48c5b0cf0d617a65fd77f06c3eb1
Microsoft Analysis Services-Clienttools 15.0.19750.0
Microsoft Data Access Components (MDAC) 10.0.14393.0
Microsoft MSXML 3.0 6.0
Microsoft .NET Framework 4.0.30319.42000
Betriebssystem 10.0.14393

SQLWATCH version (from DACPAC or from sysinstances)
4.4.0.523

@marcingminski
Copy link
Owner

Thanks for this. This behaviour was introduced by this fix: #107, and its currently by design. I suppose we could marry those two together.

@hvoges
Copy link
Author

hvoges commented Oct 6, 2022

Thank you for your fast answer. The behaviour is a bit confusing as the count in the dashboard does not show the actual count.

@hvoges hvoges closed this as completed Oct 6, 2022
@marcingminski
Copy link
Owner

marcingminski commented Oct 6, 2022

I agree with you. I will keep this open and will think about how to address this.

@marcingminski marcingminski added the bug Something isn't working label Oct 6, 2022
@marcingminski marcingminski reopened this Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants