Hi All, We are running into issues with Kafka Sour...
# troubleshooting
d
Hi All, We are running into issues with Kafka Source Connector not committing offset to broker. Debug points we checked : 1. Checkpoint duration is 1min (with 30sec between checkpoints) a. The checkpoints are completed successfully in 7-8secs b. The checkpoint data size is ~300MB c. We are using un-alligned checkpoints 2. Savepoint duration is 4 hours a. The savepoint is IN_PROGRESS since more than 3.5 hours and only 17% completion 3. We are running with 10 Task Manager a. CPU - 3000 CPU i. Utilised is only 200m b. MEMORY - 5GB i. Utilised is only 3GB 4. Job Status a. Reading from Kafka and Writing to Kafka with processing which queries MongoDB for every event. b. Is in RUNNING status with no errors c. But, the backpressure is 100% and all operators are busy. (Not sure why it busy when the CPU & MEMORY are underutilised) d. Even though checkpoints are successful the offset does not seem to be committed to brokers. e. The difference is currentOffset in FlinkMetrics and The current offset on Kafka broker for the cg has a difference of 3 million, which means Flink is processing but not committing the offset. Appreciate any help or input here. CC: @Abhishek Joshi @Sonika Singla @Kiran Aswath @Preetham Umarani
👀 1
p
I had a similar one in the past. I found out a bug. Here is the commit message I've made on my personal project. I hope the context helps you out
Copy code
commit 2b6e239a7867d28d7eaa2467066b400cb0671737
Author: Pedro Mázala <pedroh.mazala@gmail.com>
Date:   Mon Jul 24 12:43:09 2023 +0200

    Ensure `kafka-clients` version matches Flink (#220)
    
    Flink had issues in the past about not being able to commit offsets (1)
    and the community implemented a fix on version `1.16.0`.
    
    Part of this fix is about `org.apache.kafka:kafka-clients` version. It
    got updated from version `2.8.1` to `3.1.1` (2).
    
    You may think updating Flink should be enough (and it should indeed),
    but the project has another dependency
    `org.apache.flink:flink-avro-confluent-registry` which relies on
    `kafka-clients`. This package from confluent uses the version
    `6.2.2-css` which is a confluent centric version. Because `6` is
    greather than `3`, gradle thinks that if both versions are compatible,
    the code should rely on the latest one. But, unfortunately, this version
    relies on `kafka-clients:2.8.0` (3).
    
    Those changes make sure the dependencies from apicurio and confluent on
    `kafka-clients` is excluded and then only the dependency from Flink
    itself is used.
    
    All this was found using `./gradlew dependencies` and some googling to
    discovery what is `kafka-clients:6.2.2-css` (4).
    
    (1) https://issues.apache.org/jira/browse/FLINK-28060
    (2) https://github.com/apache/flink/pull/19994/files#diff-c8e72f4cdf371f8b16a87a6445ff41807a1bb2d1d061245de75d33f1388592d0
    (3) https://github.com/confluentinc/kafka/blob/v6.2.2-22-ccs/Jenkinsfile#L53
    (4) https://stackoverflow.com/questions/70838735/determine-actual-kafka-version-that-is-being-used-inside-confluentinc-cp-kafka6
👍 1