You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new replica will get stuck because it'll try to do two things:
Create the WINDOW VIEW's inner table: CREATE TABLE db..inner_<uuid>.
Create the WINDOW VIEW itself, which also tries to create its inner table and fails with TABLE_ALREADY_EXISTS.
Full repro:
createdatabasere3 engine Replicated('/re3', 's1', 'r1');
createtablere3.in (k String, v Int64) engine Memory;
createtablere3.out (k String, s Int64) engine ReplicatedMergeTree order by k;
create window view re3.v to out (k String, s Int64) inner engine ReplicatedAggregatingMergeTree order by x asselect tumbleStart(x), sum(v) as s fromre3.ingroup by tumble(now(), interval 1 minute) as x SETTINGS allow_experimental_window_view =1, allow_experimental_analyzer =0;
-- On another server:createdatabasere3 engine Replicated('/re3', 's1', 'r2');
then look for infinitely retried "TABLE_ALREADY_EXISTS" errors in the second server's log.
Activity