mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(emr-serverless): hold an emr-spark release's BATCH timeout to 7 days (#8390)
From release 7.11.0 a BATCH run's executionTimeoutMinutes is 1 to 10080, "from this release onwards" as its release notes say, but Floci only read emr-x.y labels, so an application on the AWS runtime for Apache Spark (emr-spark-8.0.0 and on, emr-spark-8.0-preview) took 0 and anything up to 1,000,000. The release list puts those releases after EMR Serverless 7.14.0, so their BATCH runs are now held to the same 1 to 10080 minutes; a STREAMING run keeps 0 as no timeout.
This commit is contained in:
1 parent
ddb6680704
commit
d65e76b7ea
3 files changed
+34
-7
No files matched your search
+19
@@ -599,6 +599,25 @@ class EmrServerlessJobRunIntegrationTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void theAwsRuntimeForApacheSparksBatchRunsTimeoutIsOneToTenThousandEightyMinutesToo() {
|
||||
for (String release : List.of("emr-spark-8.0.0", "emr-spark-8.0-preview")) {
|
||||
String runtime = createApplicationOn(release, "");
|
||||
for (String timeout : List.of(", \"executionTimeoutMinutes\": 0", ", \"executionTimeoutMinutes\": 10081")) {
|
||||
startJobRun(runtime, sparkRun(UUID.randomUUID().toString(), timeout))
|
||||
.then().statusCode(400)
|
||||
.body("__type", equalTo("ValidationException"))
|
||||
.body("message", equalTo("executionTimeoutMinutes must be between 1 and 10080 for a BATCH "
|
||||
+ "job run on release emr-7.11.0 or later."));
|
||||
}
|
||||
startJobRun(runtime, sparkRun(UUID.randomUUID().toString(), ", \"executionTimeoutMinutes\": 10080"))
|
||||
.then().statusCode(200);
|
||||
startJobRun(runtime, sparkRun(UUID.randomUUID().toString(),
|
||||
", \"mode\": \"STREAMING\", \"executionTimeoutMinutes\": 0"))
|
||||
.then().statusCode(200);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void aRunIsItsOneAttempt() {
|
||||
String applicationId = createApplication("");
|
||||
|
||||
Reference in new issue
Block a user