From 161c0c87ba6c4348ef9a512dfbc855067f4227b7 Mon Sep 17 00:00:00 2001 From: Aman Nijhawan Date: Mon, 30 Sep 2024 20:48:26 +0000 Subject: [PATCH] [PLAT-15279] Adding unix timestamp to the core dump Summary: Based on slack discussions, it is helpful to have unix timestamps in the file name for the core dump. This may help in debugging. Test Plan: itest-phabricator Tested manually with a custom executable, core was generated with unix time stamp ``` core_yb.1727803373.a.out.44453.44456.gz ``` Reviewers: sanketh, hsunder Reviewed By: sanketh, hsunder Subscribers: hsunder, yugaware Differential Revision: https://phorge.dev.yugabyte.com/D38566 --- managed/devops/roles/provision-cluster-server/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed/devops/roles/provision-cluster-server/tasks/main.yml b/managed/devops/roles/provision-cluster-server/tasks/main.yml index e69b549ed056..a997f432c786 100644 --- a/managed/devops/roles/provision-cluster-server/tasks/main.yml +++ b/managed/devops/roles/provision-cluster-server/tasks/main.yml @@ -106,7 +106,7 @@ - name: Provision | Create core dump kernel pattern sysctl: name: kernel.core_pattern - value: "|{{ bin_path }}/compress_core.sh {{ yb_home_dir }}/cores/core_yb.%e.%p" + value: "|{{ bin_path }}/compress_core.sh {{ yb_home_dir }}/cores/core_yb.%t.%e.%p" state: present tags: yb-prebuilt-ami