-
Notifications
You must be signed in to change notification settings - Fork 5k
fix(source-mssql): Add Azure SQL Database compatibility for SQL Server Agent check (AI-Triage PR) #70836
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
fix(source-mssql): Add Azure SQL Database compatibility for SQL Server Agent check (AI-Triage PR) #70836
Conversation
…r Agent check This fixes a regression introduced in PR #63731 where Azure SQL Database connections fail with 'Invalid object name sys.dm_server_services' error. The fix adds an EngineEdition check before querying sys.dm_server_services: - EngineEdition 5 (Azure SQL Database): Skip the check entirely - EngineEdition 8 (Azure SQL Managed Instance): SQL Server Agent is always running - Other editions: Perform the original sys.dm_server_services check Also adds graceful error handling for SQLException to prevent connection failures in restricted permission scenarios. Fixes: airbytehq/oncall#10470 Co-Authored-By: unknown <>
Original prompt from API User |
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. Helpful Resources
PR Slash CommandsAirbyte Maintainers (that's you!) can execute the following slash commands on your PR:
|
|
Co-Authored-By: unknown <>
|
/bump-version changelog="Add Azure SQL Database compatibility for SQL Server Agent check"
|
|
Hi @burakku, I noticed the I only modified Would you prefer that I manually bump the version in Happy to follow whichever approach you prefer. |
|
bump it to 4.3.2 and add a change log to docs/integrations/sources/mssql.md |
Co-Authored-By: unknown <>
|
Done! I've bumped the version to 4.3.2 in |
|
Deploy preview for airbyte-docs ready! ✅ Preview Built with commit 6edcc1f. |
What
Fixes a regression introduced in airbytehq/airbyte#63731 where Azure SQL Database connections fail during CDC check with error:
Invalid object name 'sys.dm_server_services'.Related issue: airbytehq/oncall#10470
How
The fix adds an
EngineEditioncheck before queryingsys.dm_server_services, matching the behavior of the old connector implementation:ServerProperty('EngineEdition')firstsys.dm_server_servicescheckAlso changes error handling from throwing
ConfigErrorExceptionto logging a warning, matching the old connector's graceful handling.Additionally, the query now includes support for Chinese-localized SQL Server Agent service names (
SQL Server 代理), which was present in the old connector.Review guide
airbyte-integrations/connectors/source-mssql/src/main/kotlin/io/airbyte/integrations/source/mssql/MsSqlSourceMetadataQuerier.kt- thecheckSqlServerAgentRunning()functionairbyte-integrations/connectors/source-mssql/metadata.yaml- version bump to 4.3.2docs/integrations/sources/mssql.md- changelog entryKey review points:
throw ConfigErrorExceptiontolog.warnis appropriate (could mask legitimate errors on non-Azure SQL Server)User Impact
Azure SQL Database and Azure SQL Managed Instance users can now use CDC mode with source-mssql 4.3.2. Previously, all Azure SQL connections using CDC would fail at the connection check stage.
Can this PR be safely reverted and rolled back?
Link to Devin run: https://app.devin.ai/sessions/0687dd6ccc4640dc9ac907631225e30e
Requested by: unknown () via AI triage workflow
Updates since last revision
metadata.yamldocs/integrations/sources/mssql.md