Skip to content

Commit

Permalink
[FLINK-33354][runtime][refactor] serializedJobInformation and taskInf…
Browse files Browse the repository at this point in the history
…o are never null
  • Loading branch information
1996fanrui committed Oct 26, 2023
1 parent 75bcdf8 commit f76dfc0
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public Offloaded(PermanentBlobKey serializedValueKey) {
}
}

/** Serialized job information or <tt>null</tt> if offloaded. */
/** Serialized job information if non-offloaded or <tt>PermanentBlobKey</tt> if offloaded. */
private MaybeOffloaded<JobInformation> serializedJobInformation;

/** Serialized task information or <tt>null</tt> if offloaded. */
/** Serialized task information if non-offloaded or <tt>PermanentBlobKey</tt> if offloaded. */
private MaybeOffloaded<TaskInformation> serializedTaskInformation;

/**
Expand Down Expand Up @@ -283,10 +283,6 @@ public void loadBigData(
inputGate.tryLoadAndDeserializeShuffleDescriptors(
blobService, jobId, shuffleDescriptorsCache);
}

// make sure that the serialized job and task information fields are filled
Preconditions.checkNotNull(serializedJobInformation);
Preconditions.checkNotNull(serializedTaskInformation);
}

@Override
Expand Down

0 comments on commit f76dfc0

Please sign in to comment.