mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fix flaky test
This commit is contained in:
parent
b0ffde5825
commit
aaddb6a086
@ -31,6 +31,11 @@ INSERT INTO replicated_constraints1 VALUES (10, 10);
|
||||
INSERT INTO replicated_constraints2 VALUES (10, 10);
|
||||
|
||||
ALTER TABLE replicated_constraints1 ADD CONSTRAINT b_constraint CHECK b > 10;
|
||||
|
||||
-- Otherwise "Metadata on replica is not up to date with common metadata in Zookeeper. Cannot alter." is possible.
|
||||
SYSTEM SYNC REPLICA replicated_constraints1;
|
||||
SYSTEM SYNC REPLICA replicated_constraints2;
|
||||
|
||||
ALTER TABLE replicated_constraints2 ADD CONSTRAINT a_constraint CHECK a < 10;
|
||||
|
||||
SYSTEM SYNC REPLICA replicated_constraints1;
|
||||
@ -40,4 +45,4 @@ INSERT INTO replicated_constraints1 VALUES (10, 11); -- { serverError 469 }
|
||||
INSERT INTO replicated_constraints2 VALUES (9, 10); -- { serverError 469 }
|
||||
|
||||
DROP TABLE replicated_constraints1;
|
||||
DROP TABLE replicated_constraints2;
|
||||
DROP TABLE replicated_constraints2;
|
||||
|
Loading…
Reference in New Issue
Block a user