Skip to content

Conversation

@Vallishp
Copy link
Contributor

@Vallishp Vallishp commented Dec 8, 2024

What problem does this PR solve?

Issue Number: close #43557

Related PR: #303

Problem Summary:
add support for restore to ccr
adding binlog for restore only if after restore is finished.

Release note

None

Check List (For Author)

  • Test

    • Regression test // in ccr PR
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Vallishp Vallishp marked this pull request as draft December 8, 2024 15:51
@doris-robot
Copy link

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?

@Vallishp
Copy link
Contributor Author

Vallishp commented Dec 8, 2024

run buildall

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2024

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Vallishp Vallishp marked this pull request as ready for review December 11, 2024 14:17
@Vallishp
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Vallishp
Copy link
Contributor Author

run buildall

@Vallishp
Copy link
Contributor Author

run p0

logEdit(OperationType.OP_ALTER_REPOSITORY, repo);
}

public void logRestoreJob(RestoreJob job) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doris' editlog has a replay process, and the specific steps are in EditLog.loadJournal. Both the log phase and the replay phase need to add the binlog to the binlog manager. If a RestoreBinLogInfo is temporarily created in the log phase, then it will not be possible to construct RestoreBinLogInfo in the replay phase.

import java.util.Map;
import java.util.stream.Collectors;

public class RestoreBinLogInfo {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider keeping consistent with the existing word Binlog.

@Vallishp Vallishp marked this pull request as draft December 18, 2024 09:23
@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@Vallishp Vallishp marked this pull request as ready for review March 22, 2025 14:01
@github-actions
Copy link
Contributor

We're closing this PR because it hasn't been updated in a while.
This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and feel free a maintainer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Sep 19, 2025
@github-actions github-actions bot closed this Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] add support for restore to ccr

3 participants