Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repair: Sync schema from follower nodes before repair
Since commit "repair: Use the same schema version for repair master and followers", repair master and followers uses the same schema version that master decides to use during the whole repair operation. If master has older version of schema, repair could ignore the data which makes use of the new schema, e.g., writes to new columns. To fix, always sync the schema agreement before repair. The master node pulls schema from followers and applies locally. The master then uses the "merged" schema. The followers use get_schema_for_write() to pull the "merged" schema. Fixes scylladb#4575 Backports: 3.1
- Loading branch information