Skip to content

Commit 133ff1c

Browse files
committed
[#23210] yugabyted: yugabyted collect_logs fails to gather logs when yugabyted is not running.
Summary: Removed check for yugabyted running in collect_logs command. Incase, yugabyted crashes or is not running, `collect_logs` command will not fail. Jira: DB-12154 Test Plan: Manual Testing. Reviewers: nikhil Reviewed By: nikhil Subscribers: shikhar.sahay Differential Revision: https://phorge.dev.yugabyte.com/D36615
1 parent 0c8e378 commit 133ff1c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bin/yugabyted

-3
Original file line numberDiff line numberDiff line change
@@ -1346,9 +1346,6 @@ class ControlScript(object):
13461346
Output.print_and_log(msg)
13471347

13481348
def collect_logs(self):
1349-
if not self.script.is_running():
1350-
Output.log_error_and_exit(Output.make_red("ERROR") + ": No YugabyteDB node " +
1351-
"is running in the data_dir {}".format(self.configs.saved_data.get("data_dir")))
13521349
logpath = self.configs.saved_data.get("log_dir")
13531350
collect_at_dir=self.configs.temp_data.get("collect_at_dir")
13541351
if not os.path.exists(logpath):

0 commit comments

Comments
 (0)