prevent npe on mismatch between number of kafka partitions and task count (#5139)

This commit is contained in:
Parag Jain 2017-12-20 16:23:15 -06:00 committed by GitHub
parent 1181411901
commit c56a9807d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2117,7 +2117,7 @@ public class KafkaSupervisor implements Supervisor
&& latestOffsetsFromKafka.get(e.getKey()) != null
&& e.getValue() != null
? latestOffsetsFromKafka.get(e.getKey()) - e.getValue()
: null
: Integer.MIN_VALUE
)
);
}