Carl-Zhou-CN commented on code in PR #3125:
URL:
https://github.com/apache/incubator-seatunnel/pull/3125#discussion_r997684338
##########
seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/source/KafkaSourceSplitEnumerator.java:
##########
@@ -66,13 +69,42 @@ public class KafkaSourceSplitEnumerator implements
SourceSplitEnumerator<KafkaSo
this(metadata, context);
}
+ KafkaSourceSplitEnumerator(ConsumerMetadata metadata,
Context<KafkaSourceSplit> context,
+ long discoveryIntervalMillis) {
+ this(metadata, context);
+ this.discoveryIntervalMillis = discoveryIntervalMillis;
+ }
+
@Override
public void open() {
this.adminClient = initAdminClient(this.metadata.getProperties());
+ ParallelSource parallelSource = context.getParallelSource();
Review Comment:
The problem I'm facing now is that if I want to stop the source, it seems
that I can only interrupt at pollNext,Because I can't get too much valid
information in context,Do you have any other good suggestions,
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]