-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2509 [YSQL] Analyze core dump of PostgreSQL processes in tests
Summary: Our test environment already analyzes core dumps of most processes such as yb-master and yb-tserver, and prints their symbolized stack traces into the log. To analyze a core dump of any child process, the test environment needs to know the child process id and the full path to its executable file, and we already have this information for masters and tablet servers. But sometimes a PostgreSQL process can also crash with a core dump. In this diff, we are adding a new test flag, process_info_dir, and when it is specified, each PostgreSQL process (either the postmaster or a backend) will create a file named as its pid in this directory, and the file would contain its executable path. This allows us to properly symbolize core file stack traces for PostgreSQL processes. Test Plan: Jenkins Reviewers: mikhail Reviewed By: mikhail Subscribers: yql Differential Revision: https://phabricator.dev.yugabyte.com/D7495
- Loading branch information
1 parent
3d0ec48
commit 73ac064
Showing
2 changed files
with
64 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters