vitessio / vitess

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

Online DDL: `--singleton-table` DDL strategy flag #17169

Closed shlomi-noach closed 4 days ago

shlomi-noach commented 1 week ago

Description

Per https://github.com/vitessio/vitess/issues/17162, we add a --singleton-table DDL strategy flag, which prevents an Online DDL submission for a table (or view) that is already pending an Online DDL operation.

Related Issue(s)

Fixes https://github.com/vitessio/vitess/issues/17162

Documentation: https://github.com/vitessio/website/pull/1881

Checklist

Deployment Notes

vitess-bot[bot] commented 1 week 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 week ago

Codecov Report

Attention: Patch coverage is 25.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 67.44%. Comparing base (e87457e) to head (fc64ff9). Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
go/vt/vttablet/onlineddl/executor.go 0.00% 9 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #17169 +/- ## ======================================= Coverage 67.44% 67.44% ======================================= Files 1569 1569 Lines 252178 252189 +11 ======================================= + Hits 170080 170088 +8 - Misses 82098 82101 +3 ```

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