psolomin commented on issue #25975:
URL: https://github.com/apache/beam/issues/25975#issuecomment-1764127126

   > Can you try setting --experiments=use_deprecated_read for KafkaIO?
   
   Tried. And it still worked without issues - reducing Flink parallelism from 
3 to 2, with 3 partitions in the source topic, did not cause records loss. This 
is how I run it:
   
   ```
   docker exec -u flink -it kafka-consumer-flink-jm-1 flink run \
        -s file:///mnt/savepoints/savepoint-< savepoint id > \
        --class com.kfk.consumer.FlinkRunnerMain --detached \
        
/mnt/artifacts/example-com.kfk.consumer.FlinkRunnerMain-bundled-0.1-SNAPSHOT.jar
 \
        --bootstrapServers=kafka:9092 --inputTopics=raw,raw2 
--outputDir=/mnt/output \
        --autoWatermarkInterval=10000 \
        --externalizedCheckpointsEnabled=true \
        --checkpointingMode=EXACTLY_ONCE \
        --numConcurrentCheckpoints=1 \
        --checkpointTimeoutMillis=500000 \
        --checkpointingInterval=60000 \
        --minPauseBetweenCheckpoints=5000 \
        --stateBackend=rocksdb \
        --stateBackendStoragePath=file:///tmp/flink-state \
        --parallelism=2 \
           --experiments=use_deprecated_read
   
   ```
   


-- 
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]

Reply via email to