提交 9ab04daf 编写于 作者: B Bo WANG 提交者: Chesnay Schepler

[FLINK-11232][rest] Fix subtask start-time field name

上级 f9fbbd76
......@@ -110,7 +110,8 @@ public class JobVertexDetailsInfo implements ResponseBody {
public static final String FIELD_NAME_STATUS = "status";
public static final String FIELD_NAME_ATTEMPT = "attempt";
public static final String FIELD_NAME_HOST = "host";
public static final String FIELD_NAME_START_TIME = "start_time";
public static final String FIELD_NAME_START_TIME = "start-time";
public static final String FIELD_NAME_COMPATIBLE_START_TIME = "start_time";
public static final String FIELD_NAME_END_TIME = "end-time";
public static final String FIELD_NAME_DURATION = "duration";
public static final String FIELD_NAME_METRICS = "metrics";
......@@ -130,6 +131,9 @@ public class JobVertexDetailsInfo implements ResponseBody {
@JsonProperty(FIELD_NAME_START_TIME)
private final long startTime;
@JsonProperty(FIELD_NAME_COMPATIBLE_START_TIME)
private final long startTimeCompatible;
@JsonProperty(FIELD_NAME_END_TIME)
private final long endTime;
......@@ -154,6 +158,7 @@ public class JobVertexDetailsInfo implements ResponseBody {
this.attempt = attempt;
this.host = checkNotNull(host);
this.startTime = startTime;
this.startTimeCompatible = startTime;
this.endTime = endTime;
this.duration = duration;
this.metrics = checkNotNull(metrics);
......@@ -175,6 +180,7 @@ public class JobVertexDetailsInfo implements ResponseBody {
attempt == that.attempt &&
Objects.equals(host, that.host) &&
startTime == that.startTime &&
startTimeCompatible == that.startTimeCompatible &&
endTime == that.endTime &&
duration == that.duration &&
Objects.equals(metrics, that.metrics);
......@@ -182,7 +188,7 @@ public class JobVertexDetailsInfo implements ResponseBody {
@Override
public int hashCode() {
return Objects.hash(subtask, status, attempt, host, startTime, endTime, duration, metrics);
return Objects.hash(subtask, status, attempt, host, startTime, startTimeCompatible, endTime, duration, metrics);
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册