-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2024.1][PLAT-14696] DDL atomicity check metric and alert1
Summary: Adding DDL atomicity check to the health check script. Check is performed in case special argument is passed to the script. NOt performed by default. Passing required arguments from the HealthChecker once an hour for each universe. Check is performed on one tserver node only. We try to run on master leader node. If it's a dedicated master - we'll run on the TServer node from the same region. If it's not present - will run on random TServer node. Exporting metric status yb_ddl_atomicity_check from YBA for this check Also added an alert based on the metric. Original diff: https://phorge.dev.yugabyte.com/D36886 Test Plan: Created multiple universes with various versions. Make sure DDL atomicity check runs on universes with versions between 2.18.4.0-b23 and 2.19.0.0-b1 and higher than 2.19.1.0-b301. Make sure DDL atomicity check passes by default. Force DDL atomicity issues on universes with versions 2.18.4.0-b23 and 2.20.0.0-b50. Make sure health check result shows the list of errors. MAke sure alert is raised for both universes. Fix the issues by deleting the affected tables. Make sure alert is cleaned after next DDL atomicity check passes. Reviewers: #yba-api-review!, vbansal Reviewed By: vbansal Subscribers: yugaware, sanketh Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D36949
- Loading branch information
1 parent
35881f7
commit c82b1c4
Showing
13 changed files
with
383 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.