Skip to content

Commit

Permalink
[flink] Fix performance issue in ContinuousFileSplitEnumerator (#3071)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin committed Mar 25, 2024
1 parent 76abb84 commit d77b75d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ protected synchronized void assignSplits() {
// create assignment
Map<Integer, List<FileStoreSourceSplit>> assignment = new HashMap<>();
Iterator<Integer> readersAwait = readersAwaitingSplit.iterator();
Set<Integer> subtaskIds = context.registeredReaders().keySet();
while (readersAwait.hasNext()) {
Integer task = readersAwait.next();
if (!context.registeredReaders().containsKey(task)) {
if (!subtaskIds.contains(task)) {
readersAwait.remove();
continue;
}
Expand Down

0 comments on commit d77b75d

Please sign in to comment.