15767714253 commented on code in PR #6808:
URL: https://github.com/apache/seatunnel/pull/6808#discussion_r1595277870
##########
seatunnel-connectors-v2/connector-influxdb/src/main/java/org/apache/seatunnel/connectors/seatunnel/influxdb/source/InfluxdbSourceReader.java:
##########
@@ -97,11 +102,26 @@ public void close() {
}
@Override
- public void pollNext(Collector<SeaTunnelRow> output) {
- while (!pendingSplits.isEmpty()) {
- synchronized (output.getCheckpointLock()) {
- InfluxDBSourceSplit split = pendingSplits.poll();
- read(split, output);
+ public void pollNext(Collector<SeaTunnelRow> output) throws
InterruptedException {
+ // reader influxDB By chunk
+ if (StringUtils.isEmpty(config.getSplitKey()) && config.getChunkSize()
> 0) {
Review Comment:
I think this is not advisable, because I believe that chunked reading puts a
lot of performance pressure on InfluxDB, and some users would still prefer to
shift the pressure to SeaTunnel.
--
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]