Serverless SQL is not clearing the tempdb after querys now it's full and we cannot use the database anymore (bug?)

RickMsBi 86 Reputation points
2023-08-02T10:43:49.83+00:00

Hi all,

We are using serverless SQL and have been, for the past year. Currently we have an issue with the tempdb not clearing up. Normal behaviour would be, read data in temptable (I guess) and return the storage after a query completes. It looks like the storage space is not freed up after running querys.

Even selecting the "1" from the smallest of external tables or views results in the following error.

There are currently no open running transactions.

Error 0x27 - Could not allocate tempdb space while transferring data from one distribution to another. See 'https://aka.ms/monitor-temp-db' for assistance.

User's image

Is there any way to clear the temp table, like what was possible in on-premise sql server? Or is it periodically cleared? Right now, it just stays completely maxed out and we can't run any querys apart from query's that do not touch any external data like "select 1 + 1".

Regards,

Rick

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.
4,454 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RickMsBi 86 Reputation points
    2023-08-23T07:31:54.97+00:00

    Hi @BhargavaGunnam-MSFT ,

    In the end we used the kill command in classical fashion to kill all user processes, then waited the night, next morning it was ok. But it feels weird to have to use the command on the tempdb as the query time limit is 30 minutes and we don't expect this behaviour from a cloud environment.

    Regards,

    Rick

    1 person found this answer helpful.