Skip to content

Commit 885d7ba

Browse files
authored
Merge pull request #291263 from WilliamDAssafMSFT/20241202-patch-2
20241202 patch 2
2 parents f6557cc + 40846ae commit 885d7ba

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed
Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
11
---
2-
title: Troubleshooting guide for Azure Synapse Link initial snapshot issues for Azure SQL Database and SQL Server
2+
title: Troubleshooting Guide for Azure Synapse Link Initial Snapshot Issues for Azure SQL Database and SQL Server
33
description: Learn how to troubleshoot Azure Synapse Link initial snapshot issues for Azure SQL Database and SQL Server
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: imotiwala, prpasunu
7+
ms.date: 12/02/2024
78
ms.service: azure-synapse-analytics
8-
ms.topic: how-to
99
ms.subservice: synapse-link
10-
ms.date: 05/03/2023
10+
ms.topic: how-to
1111
---
1212

13-
# Troubleshoot: Azure Synapse Link for SQL initial snapshot issues
13+
# Troubleshoot: Azure Synapse Link for SQL initial snapshot issues
1414

1515
This article is a guide to troubleshooting issues with initial snapshot on Azure Synapse Link for Azure SQL Database and SQL Server.
1616

17+
Start by reviewing your configuration. For more information, see [Configure your source Azure SQL database](../connect-synapse-link-sql-database.md#configure-your-source-azure-sql-database).
18+
1719
## Symptom
1820

19-
The users can follow the below resolution steps to investigate the below cases:
21+
The users can follow these resolution steps to investigate:
2022

2123
- Determine if a link connection snapshot state is stuck.
2224
- Determine if snapshot related errors are observed after starting the link connection.
2325
- Understand the progress of the initial snapshot for individual tables.
2426

2527
## Resolution
2628

27-
### Step 1: Query to get the current snapshot state for the tables included in the link connection
29+
### Step 1: Query to get the current snapshot state for the tables included in the link connection
2830

2931
Connect to the source database enabled for Azure Synapse Link using [SQL Server Management Studio](https://aka.ms/ssms) or [Azure Data Studio](https://aka.ms/azuredatastudio).
3032

@@ -39,17 +41,17 @@ FROM changefeed.change_feed_tables;
3941

4042
Example output:
4143

42-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png" alt-text="A screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png":::
44+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png" alt-text="Screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-management-studio.png":::
4345

4446
- If the `snapshot_phase` column value for the desired table is 6 (`EMIT_SNAPSHOT_ENDENTRY`), it means snapshot has already completed on the table and needs no further investigation.
45-
- There is a possibility that one of the phases of the snapshot may take longer to complete. Phase 5 (`EXPORT_DATA_FILE`) can be a time-consuming step. When the table size is large, the `EXPORT_DATA_FILE` phase is expected to take longer to finish. For more information on the snapshot phases, refer to [changefeed.change_feed_tables](/sql/relational-databases/system-tables/changefeed-change-feed-tables-transact-sql).
47+
- Steps of the snapshot can take longer to complete than others. Phase 5 (`EXPORT_DATA_FILE`) can be a time-consuming step. When the table size is large, the `EXPORT_DATA_FILE` phase is expected to take longer to finish. For more information on the snapshot phases, see [changefeed.change_feed_tables](/sql/relational-databases/system-tables/changefeed-change-feed-tables-transact-sql).
4648

4749
When a snapshot has not completed for a given table, there are two possible cases to consider based on the output of [changefeed.change_feed_tables](/sql/relational-databases/system-tables/changefeed-change-feed-tables-transact-sql):
4850

4951
- When `Snapshot_phase` < 6 and `snapshot_retry_count` = 0, the snapshot operation is ongoing, without error. No action is needed in this case, wait for snapshot completion.
5052
- When `Snapshot_phase` < 6 and `snapshot_retry_count` > 0, the snapshot operation has been failing and is being retried. Proceed to [Step 2](#step-2-snapshot-retry). For example, as in the following image:
5153

52-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png" alt-text="A screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table, indicating retries." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png":::
54+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png" alt-text="Screenshot from SQL Server Management Studio of the sample result set of the tables and columns from the changefeed.change_feed_tables system table, indicating retries." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-tables-results-retries.png":::
5355

5456
### Step 2: Snapshot retry
5557

@@ -61,22 +63,22 @@ SELECT * FROM sys.dm_change_feed_errors;
6163

6264
For example:
6365

64-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png" alt-text="A screenshot of the results of the sys.dm_change_feed_errors dynamic management view including possible snapshot errors to investigate." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png":::
66+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png" alt-text="Screenshot of the results of the sys.dm_change_feed_errors dynamic management view including possible snapshot errors to investigate." lightbox="media/troubleshoot-sql-snapshot-issues/change-feed-errors-results-management-studio.png":::
6567

6668
1. If any errors are observed from the snapshot component when `source_task` = 5, refer to error specific mitigation details in the [Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md).
6769
1. If the error is not found in the known limitations article, [submit an Azure support request](https://portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/newsupportrequest) following the below instructions:
68-
1. For **Issue type**, select **Technical**.
69-
2. Provide the desired subscription of the source database. Select **Next**.
70-
3. For **Service type**, select **SQL Database**.
71-
4. For **Resource**, select the source database where the initial snapshot is failing.
72-
5. For **Summary**, provide the error numbers from `changefeed.change_feed_errors`.
73-
6. For **Problem type**, select **Data Sync, Replication, CDC and Change Tracking**.
74-
7. For **Problem subtype**, select **Transactional Replication**.
70+
1. For **Issue type**, select **Technical**.
71+
1. Provide the desired subscription of the source database. Select **Next**.
72+
1. For **Service type**, select **SQL Database**.
73+
1. For **Resource**, select the source database where the initial snapshot is failing.
74+
1. For **Summary**, provide the error numbers from `changefeed.change_feed_errors`.
75+
1. For **Problem type**, select **Data Sync, Replication, CDC and Change Tracking**.
76+
1. For **Problem subtype**, select **Transactional Replication**.
7577

76-
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/sql-snapshot-issues-support-request.png" alt-text="A screenshot of the Azure portal where a New support request has been prepared.":::
78+
:::image type="content" source="media/troubleshoot-sql-snapshot-issues/sql-snapshot-issues-support-request.png" alt-text="Screenshot of the Azure portal where a New support request has been prepared.":::
7779

78-
## Next steps
80+
## Related content
7981

80-
- [Get started with Azure Synapse Link for Azure SQL Database](../connect-synapse-link-sql-database.md)
81-
- [Get started with Azure Synapse Link for SQL Server 2022](../connect-synapse-link-sql-server-2022.md)
82-
- [Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md)
82+
- [Get started with Azure Synapse Link for Azure SQL Database](../connect-synapse-link-sql-database.md)
83+
- [Get started with Azure Synapse Link for SQL Server 2022](../connect-synapse-link-sql-server-2022.md)
84+
- [Known limitations and issues with Azure Synapse Link for SQL](../synapse-link-for-sql-known-issues.md)

0 commit comments

Comments
 (0)