April 26, 2018 at 4:32 am
I'm trying to troubleshoot why an index rebuild doesn't work with WITH (SORT_IN_TEMPDB = ON, ONLINE = ON)
in Microsoft SQL Server 2016 (SP1-CU3) (KB4019916) - 13.0.4435.0 (X64). I get the following error:
Cannot continue the execution because the session is in the kill state.
I ran DBCC CHECKDB
which returned no errors. I have rerun with SORT_IN_TEMPDB = OFF
and it seems to work but takes a very long time. I have 86GB free disk space in TEMPDB drive, so surely it can't be disk space issues?
Does anyone have any ideas?
April 26, 2018 at 9:54 am
powelluss - Thursday, April 26, 2018 4:32 AMI'm trying to troubleshoot why an index rebuild doesn't work withWITH (SORT_IN_TEMPDB = ON, ONLINE = ON)
in Microsoft SQL Server 2016 (SP1-CU3) (KB4019916) - 13.0.4435.0 (X64). I get the following error:
Cannot continue the execution because the session is in the kill state.
I ran
DBCC CHECKDB
which returned no errors. I have rerun withSORT_IN_TEMPDB = OFF
and it seems to work but takes a very long time. I have 86GB free disk space in TEMPDB drive, so surely it can't be disk space issues?Does anyone have any ideas?
Someone might have killed your session.
April 26, 2018 at 7:39 pm
powelluss - Thursday, April 26, 2018 4:32 AMDoes anyone have any ideas?
May be you have a job which kills sessions that consume too much space in tempdb 😉
April 27, 2018 at 1:46 am
This job runs at 3am when there's very little traffic and no one internally is online.
The job has failed 7 times in a row now, and when I manually tried to run the culprit index rebuild, I got the same error every time. When I run the same rebuild with SORT_IN_TEMPDB = OFF it works?
April 27, 2018 at 6:15 am
Is there some job that kills sessions that use too much TempDB space? Something another DBA put in place?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply