Skip to content

[fix](cooldown) Fix potential data loss when clone task's dst tablet is cooldown replica - #17644

Merged
dataroaring merged 6 commits into
apache:masterfrom
platoneko:cooldown_replica_as_clone_dst_tablet
Sep 1, 2023
Merged

[fix](cooldown) Fix potential data loss when clone task's dst tablet is cooldown replica#17644
dataroaring merged 6 commits into
apache:masterfrom
platoneko:cooldown_replica_as_clone_dst_tablet

Conversation

@platoneko

@platonekoplatoneko commented Mar 10, 2023

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #xxx

Problem summary

If this replica is cooldown replica, MUST generate a new cooldown_meta_id to avoid use cooldown_meta_id generated in old cooldown term which may lead to such situation:
Replica A is cooldown replica, cooldown_meta_id=2,
Replica B: cooldown_replica=A, cooldown_meta_id=1
Replica A: full clone Replica B, cooldown_meta_id=1, but remote cooldown_meta is still with cooldown_meta_id=2
After tablet report. FE finds all replicas' cooldowned data is consistent(cooldown_meta_id=1)
Replica A: confirm_unused_remote_files, delete some cooldowned data of cooldown_meta_id=2
Replica B: follow_cooldown_data, cooldown_meta_id=2, data lost

Checklist(Required)

  • Does it affect the original behavior
  • Has unit tests been added
  • Has document been added or modified
  • Does it need to update dependencies
  • Is this PR support rollback (If NO, please explain WHY)

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions

Copy link
Copy Markdown
Contributor

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

@platoneko

Copy link
Copy Markdown
ContributorAuthor

run beut

@platoneko

Copy link
Copy Markdown
ContributorAuthor

run feut

@platoneko

Copy link
Copy Markdown
ContributorAuthor

run p0

@platoneko

Copy link
Copy Markdown
ContributorAuthor

run clickbench

@dataroaring

Copy link
Copy Markdown
Contributor

run buildall

@platoneko
platonekoforce-pushed the cooldown_replica_as_clone_dst_tablet branch from 952b095 to 5305f10CompareMarch 19, 2023 03:35
@platoneko

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

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

@hello-stephen

hello-stephen commented Mar 19, 2023

Copy link
Copy Markdown
Contributor

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 34.18 seconds
stream load tsv: 478 seconds loaded 74807831229 Bytes, about 149 MB/s
stream load json: 26 seconds loaded 2358488459 Bytes, about 86 MB/s
stream load orc: 76 seconds loaded 1101869774 Bytes, about 13 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230319054840_clickbench_pr_116669.html

@dataroaringdataroaring added the dev/2.0.0 2.0.0 release label Jul 25, 2023
@xiaokangxiaokang added dev/2.0.1 and removed dev/2.0.0 2.0.0 release labels Jul 26, 2023
dataroaring
dataroaring previously approved these changes Aug 18, 2023

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actions

Copy link
Copy Markdown
Contributor

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

@xiaokang

Copy link
Copy Markdown
Contributor

run buildall

dataroaring
dataroaring previously approved these changes Aug 27, 2023

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dataroaring

Copy link
Copy Markdown
Contributor

run buildall

xiaokang
xiaokang previously approved these changes Aug 27, 2023

@xiaokangxiaokang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Aug 27, 2023
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

@xiaokang

Copy link
Copy Markdown
Contributor

run buildall

@platoneko

Copy link
Copy Markdown
ContributorAuthor

run buildall

1 similar comment
@platoneko

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actions

Copy link
Copy Markdown
Contributor

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

@platoneko
platoneko dismissed stale reviews from dataroaring and xiaokang via 6a455f7September 1, 2023 05:29
@platoneko
platonekoforce-pushed the cooldown_replica_as_clone_dst_tablet branch from 1477542 to 6a455f7CompareSeptember 1, 2023 05:29
@platoneko

Copy link
Copy Markdown
ContributorAuthor

run buildall

@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Sep 1, 2023
@github-actions

Copy link
Copy Markdown
Contributor

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

@hello-stephen

Copy link
Copy Markdown
Contributor

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.98 seconds
stream load tsv: 552 seconds loaded 74807831229 Bytes, about 129 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 64 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select: 28.9 seconds inserted 10000000 Rows, about 346K ops/s
storage size: 17162195977 Bytes

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Sep 1, 2023
@github-actions

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@dataroaring
dataroaring merged commit 9d2fc78 into apache:masterSep 1, 2023
xiaokang added a commit that referenced this pull request Sep 1, 2023
…is cooldown replica (#17644)
Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
Co-authored-by: Kang <kxiao.tiger@gmail.com>
@xiaokangxiaokang mentioned this pull request Sep 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.dev/2.0.2-mergedp0_lreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@platoneko@dataroaring@hello-stephen@xiaokang@ByteYue