-
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.
[PLAT-14335][PLAT-16308] Collect Connection Manager logs in support b…
…undle Summary: This diff fixes 2 tickets: 1. [PLAT-14335] Collect Connection Manager logs in support bundle 2. [PLAT-16308] Support connection manager log rollover on YBA Logs folder before this change: ``` [yugabyte@yb-admin-sahith-uni-3-n1 ~]$ ls -ls ./tserver/logs/ total 16536 12 -rw-------. 1 yugabyte yugabyte 10311 Dec 23 20:30 postgresql-2024-12-23_202310.log 4096 -rw-------. 1 yugabyte yugabyte 6803 Dec 23 20:34 postgresql-2024-12-23_203102.log 0 lrwxrwxrwx. 1 yugabyte yugabyte 76 Dec 23 20:24 yb-tserver.ERROR -> yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.ERROR.20241223-202408.34213 0 lrwxrwxrwx. 1 yugabyte yugabyte 75 Dec 23 20:31 yb-tserver.INFO -> yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.INFO.20241223-203101.45710 0 lrwxrwxrwx. 1 yugabyte yugabyte 78 Dec 23 20:31 yb-tserver.WARNING -> yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.WARNING.20241223-203101.45710 4 -rw-r--r--. 1 yugabyte yugabyte 758 Dec 23 20:24 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.ERROR.20241223-202408.34213 120 -rw-r--r--. 1 yugabyte yugabyte 119667 Dec 23 20:29 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.INFO.20241223-202309.34213 4096 -rw-r--r--. 1 yugabyte yugabyte 147264 Dec 23 20:34 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.INFO.20241223-203101.45710 4 -rw-r--r--. 1 yugabyte yugabyte 1430 Dec 23 20:24 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.WARNING.20241223-202310.34213 4096 -rw-r--r--. 1 yugabyte yugabyte 5267 Dec 23 20:34 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.WARNING.20241223-203101.45710 4 -rw-r--r--. 1 yugabyte yugabyte 454 Dec 23 20:23 ysql-conn-mgr-2024-12-23_202310.log.34420 4 -rw-r--r--. 1 yugabyte yugabyte 208 Dec 23 20:30 ysql-conn-mgr-2024-12-23_203042.log.34420 4 -rw-r--r--. 1 yugabyte yugabyte 454 Dec 23 20:31 ysql-conn-mgr-2024-12-23_203102.log.45786 4096 -rw-r--r--. 1 yugabyte yugabyte 152 Dec 23 20:34 ysql-conn-mgr-2024-12-23_203434.log.45786 ``` Logs folder after this diff: ``` [yugabyte@yb-admin-sahith-uni-3-n1 ~]$ ls -ls ./tserver/logs/ total 16424 4 -rw-------. 1 yugabyte yugabyte 2023 Dec 23 20:30 postgresql-2024-12-23_202310.log.gz 4096 -rw-------. 1 yugabyte yugabyte 11336 Dec 23 20:35 postgresql-2024-12-23_203102.log 0 lrwxrwxrwx. 1 yugabyte yugabyte 76 Dec 23 20:24 yb-tserver.ERROR -> yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.ERROR.20241223-202408.34213 0 lrwxrwxrwx. 1 yugabyte yugabyte 75 Dec 23 20:31 yb-tserver.INFO -> yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.INFO.20241223-203101.45710 0 lrwxrwxrwx. 1 yugabyte yugabyte 78 Dec 23 20:31 yb-tserver.WARNING -> yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.WARNING.20241223-203101.45710 4 -rw-r--r--. 1 yugabyte yugabyte 758 Dec 23 20:24 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.ERROR.20241223-202408.34213 16 -rw-r--r--. 1 yugabyte yugabyte 13954 Dec 23 20:29 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.INFO.20241223-202309.34213.gz 4096 -rw-r--r--. 1 yugabyte yugabyte 148335 Dec 23 20:35 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.INFO.20241223-203101.45710 4 -rw-r--r--. 1 yugabyte yugabyte 825 Dec 23 20:24 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.WARNING.20241223-202310.34213.gz 4096 -rw-r--r--. 1 yugabyte yugabyte 5720 Dec 23 20:35 yb-tserver.yb-admin-sahith-uni-3-n1.yugabyte.log.WARNING.20241223-203101.45710 4 -rw-r--r--. 1 yugabyte yugabyte 262 Dec 23 20:23 ysql-conn-mgr-2024-12-23_202310.log.34420.gz 4 -rw-r--r--. 1 yugabyte yugabyte 204 Dec 23 20:30 ysql-conn-mgr-2024-12-23_203042.log.34420.gz 4 -rw-r--r--. 1 yugabyte yugabyte 264 Dec 23 20:31 ysql-conn-mgr-2024-12-23_203102.log.45786.gz 4096 -rw-r--r--. 1 yugabyte yugabyte 304 Dec 23 20:35 ysql-conn-mgr-2024-12-23_203434.log.45786 ``` As can be seen, the `ysql-conn-mgr` logs are zipped correctly. Test Plan: Manually tested that the zipped and unzipped logs are collected in support bundle. Adjusted UTs accordingly. Run UTs. Run itests. Reviewers: amalyshev, asharma Reviewed By: amalyshev, asharma Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D40884
- Loading branch information
Showing
8 changed files
with
75 additions
and
6 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
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
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
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