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

Skip corruption check on last WAL #5596

Merged
merged 3 commits into from Apr 3, 2024

Conversation

michaelmdeng
Copy link
Contributor

What problem does this PR solve?

During EBS snapshot warmup, only check WALs up to the last one for corruption. We expect some corruptions in the last WAL due to race between fsync and EBS snapshot, and we can recover from these scenarios.

Also updates WAL log file pattern since logs can contain variable length log nos.

What is changed and how does it work?

Code changes

  • Has Go code change
  • Has CI related scripts change

Tests

  • Unit test
  • E2E test
  • Manual test

Executed warmup w/ these changes and observe warmup progress normally w/out checking the last WAL

  • No code

Side effects

  • Breaking backward compatibility
  • Other side effects:

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release Notes

Please refer to Release Notes Language Style Guide before writing the release note.


@ti-chi-bot ti-chi-bot bot requested a review from howardlau1999 March 28, 2024 17:17
@sre-bot
Copy link
Contributor

sre-bot commented Mar 28, 2024

CLA assistant check
All committers have signed the CLA.

@BornChanger
Copy link
Contributor

/cc @YuJuncen

Copy link
Contributor

@YuJuncen YuJuncen left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

ti-chi-bot bot commented Apr 2, 2024

@YuJuncen: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

LGTM, thanks!

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot requested a review from YuJuncen April 2, 2024 10:55
Copy link
Contributor

ti-chi-bot bot commented Apr 3, 2024

@YuJuncen: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ti-chi-bot ti-chi-bot bot removed the lgtm label Apr 3, 2024
Copy link
Contributor

ti-chi-bot bot commented Apr 3, 2024

@michaelmdeng: Your PR was out of date, I have automatically updated it for you.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.74%. Comparing base (685a06d) to head (f813e45).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5596      +/-   ##
==========================================
+ Coverage   61.49%   67.74%   +6.25%     
==========================================
  Files         235      246      +11     
  Lines       30337    34230    +3893     
==========================================
+ Hits        18655    23189    +4534     
+ Misses       9813     9138     -675     
- Partials     1869     1903      +34     
Flag Coverage Δ
e2e 48.05% <ø> (?)
unittest 61.47% <ø> (-0.02%) ⬇️

@BornChanger
Copy link
Contributor

/retest

@BornChanger
Copy link
Contributor

/merge

Copy link
Contributor

ti-chi-bot bot commented Apr 3, 2024

@BornChanger: We have migrated to builtin LGTM and approve plugins for reviewing.

Please use /approve when you want approve this pull request.

The changes announcement: LGTM plugin changes

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@BornChanger
Copy link
Contributor

/cherry-pick release-1.5

@ti-chi-bot
Copy link
Member

@BornChanger: once the present PR merges, I will cherry-pick it on top of release-1.5 in the new PR and assign it to you.

In response to this:

/cherry-pick release-1.5

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@BornChanger
Copy link
Contributor

/approve

@ti-chi-bot ti-chi-bot bot added the lgtm label Apr 3, 2024
Copy link
Contributor

ti-chi-bot bot commented Apr 3, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-04-03 04:47:43.776673781 +0000 UTC m=+419325.304214351: ☑️ agreed by BornChanger.
  • 2024-04-03 05:03:51.891507509 +0000 UTC m=+420293.419048050: ✖️🔁 reset by ti-chi-bot[bot].
  • 2024-04-03 08:07:45.269346178 +0000 UTC m=+431326.796886723: ☑️ agreed by WangLe1321.

Copy link
Contributor

ti-chi-bot bot commented Apr 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BornChanger, csuzhangxc, WangLe1321, YuJuncen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [BornChanger,WangLe1321,csuzhangxc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot merged commit 89523ac into pingcap:master Apr 3, 2024
13 checks passed
@ti-chi-bot
Copy link
Member

@BornChanger: new pull request created to branch release-1.5: #5605.

In response to this:

/cherry-pick release-1.5

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

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

Successfully merging this pull request may close these issues.

None yet

8 participants