Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

backup: dump stats to json should not be fatal #682

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

kennytm
Copy link
Collaborator

@kennytm kennytm commented Jan 8, 2021

also improved some logs

What problem does this PR solve?

Part 1 of #679.

What is changed and how it works?

If the stats is broken, we just log and skip it instead of bailing out.

Check List

Tests

  • Unit test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

Release Note

  • Failing to backup statistics is no longer fatal.

@kennytm kennytm force-pushed the skip-broken-stats branch 2 times, most recently from 890b526 to 3b2d529 Compare January 8, 2021 07:55
@kennytm kennytm force-pushed the skip-broken-stats branch from 3b2d529 to df4930d Compare January 8, 2021 08:03
@kennytm kennytm marked this pull request as ready for review January 8, 2021 08:07
@kennytm kennytm requested review from 3pointer and overvenus January 8, 2021 08:08
Copy link
Contributor

@lichunzhu lichunzhu left a comment

Choose a reason for hiding this comment

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

/lgtm

@ti-srebot ti-srebot added the status/LGT1 LGTM1 label Jan 8, 2021
Copy link
Collaborator

@3pointer 3pointer left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 LGTM1 label Jan 8, 2021
@overvenus
Copy link
Member

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@kennytm merge failed.

@kennytm
Copy link
Collaborator Author

kennytm commented Jan 9, 2021

/run-all-tests

[2021-01-08T12:18:22.453Z] 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 240e:944:1:d00:3::3fc: Network is unreachable

@3pointer 3pointer merged commit 5abd5ba into pingcap:master Jan 11, 2021
ti-srebot pushed a commit to ti-srebot/br that referenced this pull request Jan 11, 2021
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #686

ti-srebot pushed a commit to ti-srebot/br that referenced this pull request Jan 11, 2021
@ti-srebot
Copy link
Contributor

cherry pick to release-5.0-rc in PR #687

lichunzhu pushed a commit that referenced this pull request Jan 11, 2021
Signed-off-by: ti-srebot <[email protected]>

Co-authored-by: kennytm <[email protected]>
kennytm added a commit that referenced this pull request Jan 12, 2021
Signed-off-by: ti-srebot <[email protected]>

Co-authored-by: kennytm <[email protected]>
Co-authored-by: Neil Shen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants