You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Wei Zhang (Jira)" <ji...@apache.org> on 2020/05/11 09:57:00 UTC

[jira] [Comment Edited] (FLINK-17595) JobExceptionsInfo. ExecutionExceptionInfo miss getter method

    [ https://issues.apache.org/jira/browse/FLINK-17595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17104283#comment-17104283 ] 

Wei Zhang edited comment on FLINK-17595 at 5/11/20, 9:56 AM:
-------------------------------------------------------------

This should be an [open API|https://ci.apache.org/projects/flink/flink-docs-release-1.10/monitoring/rest_api.html#jobs-jobid-exceptions], right?


was (Author: zhangwei24):
This should be an [open API|https://ci.apache.org/projects/flink/flink-docs-release-1.10/monitoring/rest_api.html#jobs-jobid-exceptions ], right?

> JobExceptionsInfo. ExecutionExceptionInfo miss getter method
> ------------------------------------------------------------
>
>                 Key: FLINK-17595
>                 URL: https://issues.apache.org/jira/browse/FLINK-17595
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / REST
>    Affects Versions: 1.10.0
>            Reporter: Wei Zhang
>            Priority: Minor
>             Fix For: 1.11.0
>
>
> {code:java}
> 	public static final class ExecutionExceptionInfo {
> 		public static final String FIELD_NAME_EXCEPTION = "exception";
> 		public static final String FIELD_NAME_TASK = "task";
> 		public static final String FIELD_NAME_LOCATION = "location";
> 		public static final String FIELD_NAME_TIMESTAMP = "timestamp";
> 		@JsonProperty(FIELD_NAME_EXCEPTION)
> 		private final String exception;
> 		@JsonProperty(FIELD_NAME_TASK)
> 		private final String task;
> 		@JsonProperty(FIELD_NAME_LOCATION)
> 		private final String location;
> 		@JsonProperty(FIELD_NAME_TIMESTAMP)
> 		private final long timestamp;
> 		@JsonCreator
> 		public ExecutionExceptionInfo(
> 			@JsonProperty(FIELD_NAME_EXCEPTION) String exception,
> 			@JsonProperty(FIELD_NAME_TASK) String task,
> 			@JsonProperty(FIELD_NAME_LOCATION) String location,
> 			@JsonProperty(FIELD_NAME_TIMESTAMP) long timestamp) {
> 			this.exception = Preconditions.checkNotNull(exception);
> 			this.task = Preconditions.checkNotNull(task);
> 			this.location = Preconditions.checkNotNull(location);
> 			this.timestamp = timestamp;
> 		}
> 		@Override
> 		public boolean equals(Object o) {
> 			if (this == o) {
> 				return true;
> 			}
> 			if (o == null || getClass() != o.getClass()) {
> 				return false;
> 			}
> 			JobExceptionsInfo.ExecutionExceptionInfo that = (JobExceptionsInfo.ExecutionExceptionInfo) o;
> 			return timestamp == that.timestamp &&
> 				Objects.equals(exception, that.exception) &&
> 				Objects.equals(task, that.task) &&
> 				Objects.equals(location, that.location);
> 		}
> 		@Override
> 		public int hashCode() {
> 			return Objects.hash(timestamp, exception, task, location);
> 		}
> {code}
> I found jobexceptionsinfo.executionexceptioninfo has no getter method for the field, is it missing?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)