VReplication based online DDL: mini stress test CI#7492
VReplication based online DDL: mini stress test CI#7492shlomi-noach merged 65 commits intovitessio:masterfrom
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…parser Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…t on this branch's radar Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…ap query Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
…writes to table, waiting for updated pos, renaming tables, releasing table, releasing locks Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
|
The way this test works:
We run a cycle of 5 such tests. They all must pass 100%. No fluctuations allowed. No retries. |
|
This test works most of the time, but here's one local failure I got. Like 1 in 50? I'm not sure why the "updates" comparison failed: whether this is a bug in vreplication DDL or a bug in how the mockup app computes what should be the "updates" expected value, given some concurrency. Looking into. |
|
what's interesting this is the only kind of failure I saw, and I saw it three times, and in all three times the problem is that the test met 1 more update than expected. |
|
Got another failure, this time counting |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
|
The good news: got this same error in https://github.com/vitessio/vitess/pull/7492/checks?check_run_id=1903552159. Quote: I'm very happy I introduced this test: it tests the workload without actually running an |
|
BTW I switched "expected" and "actual". "actual" is what's found in the database. "expected" is from the app's notes. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
|
Exhausting my ideas. Not sure where this deviation of data comes from. It's unrelated to online DDL because it happens even without running a migration. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Meh. It was a synchronization issue. Nothing to see here. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
|
The related commits are part of #7419 and this PR can be closed, right? |
Description
#7419 introduces VReplication via Online DDL, but the tests in #7419 only validate that the schema change applies; they do not test migration with traffic.
This PR addsa CI job which introduces a mini stress workload.
An "app" applies
insert/update/deletestatements onto a table while altering that table. The app keeps count of all successful statements. When the app stop writes, it compares its own tracking with the table data. This validates thatVReplicationdoes no corrupt data (eg by losing rows).There's actually an initial failure, which I'm looking into.
Related Issue(s)
Checklist
Deployment Notes
Impacted Areas in Vitess
Components that this PR will affect: