Commit f42825e
committed
replicators: Save replication offset for freshly-created MySQL tables
We were not consistently saving the offset due to the potential for an
empty schema field in Change::CreateTable, which would then cause the
lookup into the table's mutator to fail.
Set the schema field if it was empty. Also consider tables added so
long as they are not immediately dropped in the same batch of events.
Fixes: REA-5787
Release-Note-Core: Fix a bug where Readyset would fail to save the
replication offset for MySQL tables created during active replication,
leading to unnecessary table resnapshots.
Change-Id: I45665deb0d85629e331fc9066eab861eee5127f2
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/9723
Reviewed-by: Michael Zink <michael.z@readyset.io>
Tested-by: Buildkite CI1 parent e405c8e commit f42825e
1 file changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
789 | 796 | | |
790 | 797 | | |
791 | 798 | | |
| |||
801 | 808 | | |
802 | 809 | | |
803 | 810 | | |
| 811 | + | |
804 | 812 | | |
805 | 813 | | |
806 | 814 | | |
| |||
833 | 841 | | |
834 | 842 | | |
835 | 843 | | |
836 | | - | |
| 844 | + | |
837 | 845 | | |
838 | 846 | | |
839 | 847 | | |
| |||
0 commit comments