tweise commented on code in PR #20530:
URL: https://github.com/apache/flink/pull/20530#discussion_r943582277


##########
flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/hybrid/HybridSourceSplitEnumerator.java:
##########
@@ -218,7 +218,7 @@ public void handleSourceEvent(int subtaskId, SourceEvent 
sourceEvent) {
             }
 
             if (subtaskSourceIndex < currentSourceIndex) {
-                subtaskSourceIndex++;
+                subtaskSourceIndex = 
switchedSources.getSourceIndex(subtaskSourceIndex);

Review Comment:
   ```suggestion
                   // find initial or next index for the reader
                   subtaskSourceIndex = 
switchedSources.getSourceIndex(subtaskSourceIndex);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to