Skip to content

Commit

Permalink
[FLINK-3055] [runtime] Remove redundant version of "Executionvertex.g…
Browse files Browse the repository at this point in the history
…etSubTaskIndex()"

This closes apache#1438
  • Loading branch information
jaoki authored and StephanEwen committed Dec 6, 2015
1 parent a1f4dd1 commit 4003352
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public String handleRequest(Execution execAttempt, Map<String, String> params) t

gen.writeStartObject();

gen.writeNumberField("subtask", execAttempt.getVertex().getSubTaskIndex());
gen.writeNumberField("subtask", execAttempt.getVertex().getParallelSubtaskIndex());
gen.writeNumberField("attempt", execAttempt.getAttemptNumber());
gen.writeStringField("id", execAttempt.getAttemptId().toShortString());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public String handleRequest(Execution execAttempt, Map<String, String> params) t
JsonGenerator gen = JsonFactory.jacksonFactory.createJsonGenerator(writer);

gen.writeStartObject();
gen.writeNumberField("subtask", execAttempt.getVertex().getSubTaskIndex());
gen.writeNumberField("subtask", execAttempt.getVertex().getParallelSubtaskIndex());
gen.writeStringField("status", status.name());
gen.writeNumberField("attempt", execAttempt.getAttemptNumber());
gen.writeStringField("host", locationString);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,6 @@ public String getTaskNameWithSubtaskIndex() {
getTotalNumberOfParallelSubtasks());
}

public int getSubTaskIndex() {
return subTaskIndex;
}

public int getTotalNumberOfParallelSubtasks() {
return this.jobVertex.getParallelism();
}
Expand Down

0 comments on commit 4003352

Please sign in to comment.