Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SW-727] Improve method for downloading H2O logs #587

Merged
merged 1 commit into from Feb 22, 2018
Merged

Conversation

jakubhava
Copy link
Contributor

No description provided.

// Skip nodes that aren't healthy, since they are likely to cause the entire process to hang.
try {
if (node.isHealthy) {
val g = new GetLogsFromNode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting i would expect new GetLogsFromNode(i).doIt().bytes()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too, but current H2O API does not allow that and I wanted to limit the scope of this change just to SW

private def zipLogs(results: Array[Array[Byte]], clientResult: Array[Byte], topDir: String, destination: URI): URI = {
assert(H2O.CLOUD._memary.length == results.length, "Unexpected change in the cloud!")
val l = results.map(_.length).sum

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: 2 empty lines

mmalohlava
mmalohlava previously approved these changes Feb 21, 2018
destination
}

/** Zip the H2O logs and return them as byte array */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong comment, we return the path to the downloaded logs

@jakubhava
Copy link
Contributor Author

thanks @mmalohlava !

@jakubhava jakubhava merged commit d46f3d9 into master Feb 22, 2018
@jakubhava jakubhava deleted the jh/jira/sw-727 branch February 22, 2018 12:01
jakubhava added a commit that referenced this pull request Feb 22, 2018
jakubhava added a commit that referenced this pull request Feb 22, 2018
jakubhava added a commit that referenced this pull request Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants