vitessio / vitess

Vitess is a database clustering system for horizontal scaling of MySQL.
http://vitess.io
Apache License 2.0
18.7k stars 2.1k forks source link

Online DDL: publish `vreplication_lag_seconds` from vreplication progress #17263

Open shlomi-noach opened 1 day ago

shlomi-noach commented 1 day ago

Description

A new column in schema_migrations: vreplication_lag_seconds publishes the vreplication (rather, vplayer) lag on a vreplication migration. This is computed by the higher difference of vreplication's time updted and transaction timestamp compared with time now.

This just adds more visibility into the underlying workflow.

Related Issue(s)

https://github.com/vitessio/vitess/issues/17264

Checklist

Deployment Notes

vitess-bot[bot] commented 1 day ago

Review Checklist

Hello reviewers! :wave: Please follow this checklist when reviewing this Pull Request.

General

Tests

Documentation

New flags

If a workflow is added or modified:

Backward compatibility

codecov[bot] commented 1 day ago

Codecov Report

Attention: Patch coverage is 0% with 44 lines in your changes missing coverage. Please review.

Project coverage is 67.37%. Comparing base (c5d0ecc) to head (ba6d68a).

Files with missing lines Patch % Lines
go/vt/vttablet/onlineddl/executor.go 0.00% 34 Missing :warning:
go/vt/vttablet/onlineddl/vrepl.go 0.00% 10 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #17263 +/- ## ======================================= Coverage 67.37% 67.37% ======================================= Files 1573 1573 Lines 253110 253114 +4 ======================================= + Hits 170535 170547 +12 + Misses 82575 82567 -8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: