mirror of
https://github.com/floci-io/floci.git
synced 2026-12-06 11:38:06 -05:00
fix(emr): reject steps after cluster termination (#6115)
* fix(emr): reject steps after cluster termination * docs(emr): document terminated cluster step rejection
This commit is contained in:
1 parent
03f87285a0
commit
0dab646373
3 files changed
+37
-3
No files matched your search
@@ -201,6 +201,10 @@ public class EmrService {
|
||||
|
||||
public synchronized List<String> addJobFlowSteps(String clusterId, List<EmrStep> steps) {
|
||||
EmrCluster cluster = requireCluster(clusterId);
|
||||
if ("TERMINATED".equals(cluster.getState())) {
|
||||
throw new AwsException("ValidationException",
|
||||
"A job flow that is shutting down, terminated, or finished may not be modified.", 400);
|
||||
}
|
||||
List<String> ids = new ArrayList<>();
|
||||
for (EmrStep step : steps) {
|
||||
initStep(step);
|
||||
|
||||
Reference in new issue
Block a user