Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](routine load) reset Kafka progress cache when routine load job topic change (#38474) #39181

Merged
merged 1 commit into from
Aug 10, 2024

Commits on Aug 10, 2024

  1. [fix](routine load) reset Kafka progress cache when routine load job …

    …topic change (apache#38474)
    
    When change routine load job topic from test_topic_before to
    test_topic_after by
    ```
    ALTER ROUTINE LOAD FOR test_topic_change FROM KAFKA("kafka_topic" = "test_topic_after");
    ```
    (test_topic_before has 5 rows and test_topic_after has 1 rows)
    
    Exception happened, which cannot consume any data:
    ```
    2024-07-29 15:57:28,122 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,123 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,125 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,126 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,128 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,129 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,131 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,133 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,134 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,136 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    2024-07-29 15:57:28,137 WARN (Routine load task scheduler|55) [KafkaRoutineLoadJob.hasMoreDataToConsume():792] Kafka offset fallback. partition: 0, cache offset: 5 get latest of
    fset: 1, task 16656914-ba0a-465d-8e79-8252b423b0fc, job 16615
    ```
    
    It is necessary to reset Kafka progress cache when routine load job
    topic change.
    sollhui committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    4dbff58 View commit details
    Browse the repository at this point in the history