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

[🍒][CDAP-21041] add dataproc job status when stopped or failed #15659

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
/**
* In reuse scenario we can't find "our" cluster by cluster name, so let's put it into the label
*
* @see {@link DataprocProvisioner#getAllocatedClusterName(ProvisionerContext)}

Check warning on line 74 in cdap-runtime-ext-dataproc/src/main/java/io/cdap/cdap/runtime/spi/provisioner/dataproc/AbstractDataprocProvisioner.java

View workflow job for this annotation

GitHub Actions / Checkstyle

com.puppycrawl.tools.checkstyle.checks.javadoc.AtclauseOrderCheck

Javadoc comment at column 11 has parse error. Details: no viable alternative at input '{' while parsing JAVADOC_TAG
*/
public static final String LABEL_RUN_KEY = "cdap-run-key";

Expand Down Expand Up @@ -121,12 +121,13 @@
}

if (jobDetail != null
&& jobDetail.getStatus() == RuntimeJobStatus.FAILED
&& jobDetail.getStatus() != RuntimeJobStatus.COMPLETED
&& (jobDetail instanceof DataprocRuntimeJobDetail)) {
// Status details is specific to dataproc jobs, so it was not added to RuntimeJobDetail spi.
String statusDetails = ((DataprocRuntimeJobDetail) jobDetail).getJobStatusDetails();
if (statusDetails != null) {
LOG.error("Dataproc job failed with the status details: {}", statusDetails);
LOG.error("Dataproc job '{}' with the status details: {}",
jobDetail.getStatus().name(), statusDetails);
}
}
} finally {
Expand Down