-- Tags: zookeeper, no-parallel

DROP TABLE IF EXISTS quorum1;
DROP TABLE IF EXISTS quorum2;

CREATE TABLE quorum1(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/{database}/test_02887/quorum', '1') ORDER BY x;
CREATE TABLE quorum2(x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/{database}/test_02887/quorum', '2') ORDER BY x;

SET insert_keeper_fault_injection_probability=0;
SET insert_keeper_max_retries = 0;
SET insert_quorum = 2;

system enable failpoint replicated_merge_tree_insert_quorum_fail_0;

INSERT INTO quorum1 VALUES (1), (2), (3), (4), (5); -- {serverError UNKNOWN_STATUS_OF_INSERT}

INSERT INTO quorum1 VALUES (6), (7), (8), (9), (10);

SELECT count() FROM quorum1;

DROP TABLE quorum1 NO DELAY;
DROP TABLE quorum2 NO DELAY;
