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

Bug Fix - SQL Server HADR queries for SQL Versions #8833

Merged
merged 4 commits into from
Feb 26, 2021

Conversation

avinash-nigam
Copy link
Contributor

@avinash-nigam avinash-nigam commented Feb 8, 2021

Required for all PRs:

  • Associated README.md updated.
  • Has appropriate unit tests.

This PR fixes a bug in SqlServer plugin's HADR queries where various SQL Server versions (from 2012 onwards) were not handled, and causes the plugin to report failures for 2012 and 2014 versions.

closes #8750

@telegraf-tiger telegraf-tiger bot added the fix pr to fix corresponding bug label Feb 8, 2021
Copy link
Contributor

@telegraf-tiger telegraf-tiger bot left a comment

Choose a reason for hiding this comment

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

🤝 ✅ CLA has been signed. Thank you!

@avinash-nigam
Copy link
Contributor Author

@ssoroka @srebhan @Trovalo @denzilribeiro @masree @coquagli @bhsu-ms
Could you please help review this?

@srebhan
Copy link
Member

srebhan commented Feb 8, 2021

Sorry this is beyond my SQL capabilities... :-)

@masree
Copy link
Contributor

masree commented Feb 9, 2021

Thank you for the fix! Looks good to me!

@Trovalo
Copy link
Collaborator

Trovalo commented Feb 12, 2021

closes #8750

@avinash-nigam
Copy link
Contributor Author

@sjwang90 / @ssoroka Could you please help merge this?

Copy link
Member

@helenosheaa helenosheaa left a comment

Choose a reason for hiding this comment

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

Just minor questions but other than that looks good

plugins/inputs/sqlserver/sqlserverqueries.go Show resolved Hide resolved
plugins/inputs/sqlserver/sqlserverqueries.go Show resolved Hide resolved
plugins/inputs/sqlserver/sqlserverqueries.go Show resolved Hide resolved
Copy link
Collaborator

@Trovalo Trovalo left a comment

Choose a reason for hiding this comment

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

The code looks good as it is now, I've added the explanation.

plugins/inputs/sqlserver/sqlserverqueries.go Show resolved Hide resolved
plugins/inputs/sqlserver/sqlserverqueries.go Show resolved Hide resolved
Copy link
Member

@helenosheaa helenosheaa left a comment

Choose a reason for hiding this comment

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

Ok thanks for the clarification, happy to merge it now then

@helenosheaa helenosheaa merged commit b362ee4 into influxdata:master Feb 26, 2021
@avinash-nigam
Copy link
Contributor Author

Thank you @Trovalo for helping with the clarifications and approval. And thank you @helenosheaa for merging the PR. I'll resolve the open conversation in the above thread.

arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sqlserver fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQLServer plugin: Invalid columns with SQLServerAvailabilityReplicaStates on SQL 2014 and earlier
5 participants