Issue Information
| Issue Number | 329546b |
| Issue | After ERROR_DEADLOCK occurs, the system becomes unresponsive during internal transaction creation when processing the SERVER ERROR trigger. |
| Cause | When a DDL is executed, a recursive transaction is created if a system trigger exists. During this process, the Undo header pin of the parent transaction was not released, resulting in a self-deadlock. To prevent this, the Buffer Cache is checked before creating a recursive transaction to identify a self-deadlock situation and release the Buffer Pin. When the 6FS07 a patch is applied, a self-deadlock may occur if an exception occurs during rollback because cleanup logic is missing. |
| Solutions | Upon entering CATCH, stmt scope buffer pins/handlers are proactively restored based on the marker, and any remaining undo header pins are identified and released before executing a recursive transaction for a DB trigger, thereby preventing buffer self-deadlocks. When performing buffer pin SO recovery, dependent related SOs are also cleaned up, which also resolves the issue where SIGSEGV could occur during the SO recovery process. |
| Occurrence Date | 26.06.10. |
| Required Patch Version | 6FS07PS 7FS02PS |
Patch Information
| Patch Name | FS02PS_329546b |
| Major Version | 7 |
| Minor Version | FS02PS |
| Version Title | Modified the buffer pin self-deadlock check for the undo header to inspect only the SO list |
| Available for Deployment | 26.09.17. |
| Compatibility | • TAC rolling patch: Available • TSC rolling patch: Available • Backup data compatibility: Available • Protocol compatibility: Available • Data format compatibility: Available |
| AP Impact | • Plan change: No • Result value change: No • SQL syntax change: No • System object change: No • Existing functionality change: No |
| Parameters | - |
| Workaround | - |