Issue Information
| Issue Number | 700449c |
| Issue | When VIP or DB is shut down in CM, the implementation performs fork() and then has the child process write a log and terminate. However, the child process sometimes failed to operate properly and remained in a hung state. |
| Cause | When fork() was called, the parent process had acquired a lock inside the localtime_r() function. As a result, although the thread that owned the lock did not exist in the child process, the child process called localtime_r() again to write a log and could not acquire the library's internal lock, causing it to enter an infinite wait state. |
| Solutions | The method for calculating log timestamps in the child process was changed so that it does not use the localtime or localtime_r functions. |
| Occurrence Date | 26.03.13. |
| Required Patch Version | 6FS07PS 7FS02PS |
Patch Information
| Patch Name | FS02PS_700449c |
| Major Version | 7 |
| Minor Version | FS02PS |
| Version Title | Resolve potential child process hangs after forking from cm |
| Available Deployment Date | 26.04.28. |
| 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 |
| Parameter | - |
| Workaround | - |
Issue Information
| Issue Number | 700449d |
| Issue | When VIP or DB is shut down in CM, the implementation performs fork() and then has the child process write a log and terminate. However, the child process sometimes failed to operate properly and remained in a hung state. |
| Cause | When fork() was called, the parent process had acquired a lock inside the localtime_r() function. As a result, although the thread that owned the lock did not exist in the child process, the child process called localtime_r() again to write a log and could not acquire the library's internal lock, causing it to enter an infinite wait state. |
| Solutions | Modify the process forking logic, including the agent. |
| Occurrence Date | 26.08.19. |
| Required Patch Version | 6FS07PS 7FS02PS |
Patch Information
| Patch Name | FS02PS_700449d |
| Major Version | 7 |
| Minor Version | FS02PS |
| Version Title | Modify all forking sections (including the agent) |
| Available Deployment Date | 26.12.01. |
| 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 |
| Parameter | - |
| Workaround | - |