Skip to content

[fix](routineload) Preserve cloud progress for Kafka property alters - #67515

Open
0AyanamiRei wants to merge 1 commit into
apache:masterfrom
0AyanamiRei:fix/doris-25342-routine-load-replay-resume
Open

[fix](routineload) Preserve cloud progress for Kafka property alters#67515
0AyanamiRei wants to merge 1 commit into
apache:masterfrom
0AyanamiRei:fix/doris-25342-routine-load-replay-resume

Conversation

@0AyanamiRei

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: In cloud mode, every ALTER ROUTINE LOAD ... FROM KAFKA(...) operation reset the persisted routine-load progress. For Kafka client-property-only changes such as group.id or client.id, the reset request contained no partition offsets, so Meta Service deleted the complete progress record. After FE replay, resuming the job could reconstruct offsets from the default end position and skip the paused backlog while still reporting RUNNING.

This change preserves existing cloud progress for Kafka client-property-only alterations. Progress is still reset when the topic or explicit partition offsets change.

Release note

Kafka client-property-only routine load alterations now preserve cloud consumption progress across FE replay and resume.

Check List (For Author)

  • Test: Unit Test added; not run as requested
  • Behavior changed: Yes. Kafka client-property-only ALTER no longer resets cloud routine-load progress.
  • Does this need documentation: No

### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: In cloud mode, every ALTER ROUTINE LOAD FROM KAFKA operation reset the persisted routine-load progress. For Kafka client-property-only changes, the reset request contained no partition offsets, so Meta Service deleted the complete progress record. After FE replay, resuming the job could reconstruct offsets from the default end position and skip the paused backlog. Preserve existing cloud progress unless the topic or explicit partition offsets change.

### Release note

Kafka client-property-only routine load alterations now preserve cloud consumption progress across FE replay and resume.

### Check List (For Author)

- Test: Unit Test added; not run as requested

- Behavior changed: Yes. Kafka client-property-only ALTER no longer resets cloud routine-load progress.

- Does this need documentation: No
@hello-stephen

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants