mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
prevent npe on mismatch between number of kafka partitions and task count (#5139)
This commit is contained in:
parent
1181411901
commit
c56a9807d4
@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user