Skip to content

Commit

Permalink
[#23210] yugabyted: yugabyted collect_logs fails to gather logs when …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
ShikharSahay committed Jul 16, 2024
1 parent 0c8e378 commit 133ff1c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions bin/yugabyted
Original file line number Diff line number Diff line change
Expand Up @@ -1346,9 +1346,6 @@ class ControlScript(object):
Output.print_and_log(msg)

def collect_logs(self):
if not self.script.is_running():
Output.log_error_and_exit(Output.make_red("ERROR") + ": No YugabyteDB node " +
"is running in the data_dir {}".format(self.configs.saved_data.get("data_dir")))
logpath = self.configs.saved_data.get("log_dir")
collect_at_dir=self.configs.temp_data.get("collect_at_dir")
if not os.path.exists(logpath):
Expand Down

0 comments on commit 133ff1c

Please sign in to comment.