Synapse SQL serverless Pool Flooded with failing queries.

Russell Bowden 15 Reputation points
2023-09-25T23:23:25.5866667+00:00

We have a situation where a Synapse Analytics environment is running with only a serverless SQL pool, and appears to have suddenly gotten stuck with the same few queries running in a loop. Each query floods the pool with 5-6 requests per second and is unable to be killed or stopped reliably.

We have turned off all pipelines and all triggers for all copy tasks but we are still seeing the same failed queries occurring on this looping basis. We have been unable to find a way to disable/ pause the serverless database or to turn off the Synapse resource. The large number of failed transient queries is resulting in any query hitting the SQL serverless pool to fail.

Is it possible to stop the queries running, pause the SQL Serverless pool in Synapse or pause Synapse?

How do we get to the point of breaking this unwanted loop of executions?

The looping query in question is structured as follows if it helps:

IF NOT EXISTS(SELECT * FROM sys.external_tables WHERE object_id = OBJECT_ID('[dbo].[my table]'))

BEGIN

CREATE EXTERNAL TABLE [dbo].[my table] AS SCHEMA_INFERRED_TABLE WITH ( LOCATION = 'my folder', DATA_SOURCE = [my datasource_ID], FILE_FORMAT = [DELTA] )

END

our error message is:
Query failed because of compute container failures or other transient errors, and retry exhausted. This can be an intermittent issue. Please retry later.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,121 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.