You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip non-readable AG secondary databases in cross-database collectors (#325) (#345)
Collectors that iterate databases and USE/query into them now exclude
AG secondary replicas configured with READ_ONLY connections, which
reject non-read-intent sessions with "not accessible for queries" errors.
Filter uses sys.availability_replicas.secondary_role_allow_connections_desc
to identify secondaries that won't accept our connection type. Databases
on primaries, non-AG databases, and secondaries with ALL connections
continue to be collected normally.
Changed locations:
- install/39_collect_database_configuration.sql (scoped config cursor)
- install/09_collect_query_store.sql (QS discovery cursor)
- Lite/RemoteCollectorService.ServerConfig.cs (scoped config db list)
- Lite/RemoteCollectorService.QueryStore.cs (QS discovery cursor)
Clean install verified on sql2016 with zero errors.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments