patternsqlMinor
Does not writing a checkpoint record damage anything?
Viewed 0 times
damageanythingwritingcheckpointrecorddoesnot
Problem
I got an alert
Event ID: 3619. Could not write a checkpoint record in database 'ID ####' because the log is out of space
I know why it happened, I have addressed the issue, backed up the t-logs, shrunk the log that overgrew and other wise done my best to ensure it does not occur again. The issue that caused the logs to fill was an index rebuild.
Other than checkpoint not getting written and the specific index rebuild not finishing, I don't see anything else going wrong.
Does the failed checkpoint write (by its self) cause any damage that I might need to address?
Reference CHECKPOINT (Transact-SQL)
Event ID: 3619. Could not write a checkpoint record in database 'ID ####' because the log is out of space
I know why it happened, I have addressed the issue, backed up the t-logs, shrunk the log that overgrew and other wise done my best to ensure it does not occur again. The issue that caused the logs to fill was an index rebuild.
Other than checkpoint not getting written and the specific index rebuild not finishing, I don't see anything else going wrong.
Does the failed checkpoint write (by its self) cause any damage that I might need to address?
Reference CHECKPOINT (Transact-SQL)
Solution
Does the failed checkpoint write (by its self) cause any damage that I might need to address?
There would be no damage as such, what checkpoint does is it writes dirty pages from buffer pool to the disk reducing the amount of recovery time and amount of work SQL Server has to do after restart or crash recovery. In extreme case if database goes under crash recovery the amount of time taken to recover database would increase.
In your case it is good you found out that it was actually the index rebuild which produced some good amount of logs and eventually failed because of low disk space on log drive. This would just rollback the operation and would bring fragmentation as it was before the rebuild
There would be no damage as such, what checkpoint does is it writes dirty pages from buffer pool to the disk reducing the amount of recovery time and amount of work SQL Server has to do after restart or crash recovery. In extreme case if database goes under crash recovery the amount of time taken to recover database would increase.
In your case it is good you found out that it was actually the index rebuild which produced some good amount of logs and eventually failed because of low disk space on log drive. This would just rollback the operation and would bring fragmentation as it was before the rebuild
Context
StackExchange Database Administrators Q#166348, answer score: 3
Revisions (0)
No revisions yet.