mirror of https://github.com/apache/druid.git
kafkasupervisor checkpointing bug (#6639)
This commit is contained in:
parent
c4cb4b4909
commit
7928e81e3f
|
@ -669,18 +669,21 @@ public class KafkaSupervisor implements Supervisor
|
|||
})
|
||||
.findAny()
|
||||
.map(Entry::getKey);
|
||||
taskGroupId = maybeGroupId.orElse(
|
||||
pendingCompletionTaskGroups
|
||||
.entrySet()
|
||||
.stream()
|
||||
.filter(entry -> {
|
||||
final List<TaskGroup> taskGroups = entry.getValue();
|
||||
return taskGroups.stream().anyMatch(group -> group.baseSequenceName.equals(baseSequenceName));
|
||||
})
|
||||
.findAny()
|
||||
.orElseThrow(() -> new ISE("Cannot find taskGroup for baseSequenceName[%s]", baseSequenceName))
|
||||
.getKey()
|
||||
);
|
||||
|
||||
if (maybeGroupId.isPresent()) {
|
||||
taskGroupId = maybeGroupId.get();
|
||||
} else {
|
||||
taskGroupId = pendingCompletionTaskGroups
|
||||
.entrySet()
|
||||
.stream()
|
||||
.filter(entry -> {
|
||||
final List<TaskGroup> taskGroups = entry.getValue();
|
||||
return taskGroups.stream().anyMatch(group -> group.baseSequenceName.equals(baseSequenceName));
|
||||
})
|
||||
.findAny()
|
||||
.orElseThrow(() -> new ISE("Cannot find taskGroup for baseSequenceName[%s]", baseSequenceName))
|
||||
.getKey();
|
||||
}
|
||||
} else {
|
||||
taskGroupId = nullableTaskGroupId;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue