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

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

Wei Zhang created FLINK-17595:
---------------------------------

             Summary: 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
             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)