Skip to content

Commit

Permalink
[PLAT-3213] Fixed "PLAT-2994 broken universe creation"
Browse files Browse the repository at this point in the history
Summary: Command output: prefix was removed from run_node_action.py - hence template check in CreateTable.java stopped working. This fixes the broken universe creation.

Test Plan: Manually tested.

Reviewers: amalyshev

Reviewed By: amalyshev

Subscribers: jenkins-bot

Differential Revision: https://phabricator.dev.yugabyte.com/D15635
  • Loading branch information
Sahith02 authored and jayant anand committed Mar 8, 2022
1 parent da84c50 commit 8d44fac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions managed/devops/bin/run_node_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def add_run_command_subparser(subparsers, command, parent):

def handle_run_command(args, client):
output = client.exec_command(args.command)
print('Command output:')
print(output)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,15 @@ public List<String> getNodeFilePaths(

ShellResponse shellOutput = this.nodeUniverseManager.runCommand(node, universe, cmd);
String cmdOutput = shellOutput.message;
return Arrays.asList(cmdOutput.trim().split("\n", 0));
List<String> cmdOutputList = Arrays.asList(cmdOutput.trim().split("\n", 0));
// Removes all warnings before string "Command output:"
int lastIndex = 0;
for (int i = 0; i < cmdOutputList.size(); ++i) {
if (cmdOutputList.get(i).contains("Command output:")) {
lastIndex = i;
}
}
return cmdOutputList.subList(lastIndex + 1, cmdOutputList.size());
}

// Filters a list of log file paths with a regex pattern and between given start and end dates
Expand Down

0 comments on commit 8d44fac

Please sign in to comment.