Skip to content

Commit

Permalink
[FLINK-36604][datastream] StreamingJobGraphGenerator::setOperatorConf…
Browse files Browse the repository at this point in the history
…ig checks input serializer lengh
  • Loading branch information
liuml07 committed Oct 26, 2024
1 parent 20e9826 commit a718894
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,12 @@ private void setOperatorConfig(
? 0 // single input operator
: inEdge.getTypeNumber() - 1; // in case of 2 or more inputs

Preconditions.checkState(
inputIndex < inputSerializers.length,
"Input type serializer of vertex '%s' was null or undefined for inputIndex %s",
vertex,
inputIndex);

if (chainedSource != null) {
// chained source is the input
if (inputConfigs[inputIndex] != null) {
Expand Down

0 comments on commit a718894

Please sign in to comment.