Fixed test. [#CLICKHOUSE-3346]

This commit is contained in:
Vitaliy Lyudvichenko 2018-01-11 02:42:31 +03:00
parent 7c66d2c47c
commit 43ae5a6932
4 changed files with 7 additions and 9 deletions

View File

@ -2,8 +2,4 @@
<distributed_ddl>
<path>/clickhouse/task_queue/ddl</path>
</distributed_ddl>
<merge_tree>
<replicated_deduplication_window>0</replicated_deduplication_window>
</merge_tree>
</yandex>

View File

@ -6,7 +6,7 @@
<log_queries>1</log_queries>
<!-- Remove this setting after superfluous deduplication after DROP PARTITION is fixed -->
<insert_deduplicate>1</insert_deduplicate>
<insert_deduplicate>0</insert_deduplicate>
</default>
</profiles>

View File

@ -59,8 +59,6 @@
<!-- Setting used to insert data -->
<settings_push>
<!-- Remove this setting after superfluous deduplication after DROP PARTITION is fixed -->
<insert_deduplicate>0</insert_deduplicate>
</settings_push>
<!-- Tasks -->

View File

@ -14,7 +14,7 @@ sys.path.insert(0, os.path.dirname(CURRENT_TEST_DIR))
from helpers.cluster import ClickHouseCluster
from helpers.test_tools import TSV
COPYING_FAIL_PROBABILITY = 0.5
COPYING_FAIL_PROBABILITY = 0.33
cluster = None
@pytest.fixture(scope="module")
@ -48,7 +48,7 @@ def started_cluster():
finally:
pass
#cluster.shutdown()
cluster.shutdown()
def _test_copying(cmd_options):
@ -105,6 +105,10 @@ def _test_copying(cmd_options):
assert TSV(cluster.instances['s1_1_0'].query("SELECT DISTINCT d % 2 FROM hits")) == TSV("0\n")
zk.delete(zk_task_path, recursive=True)
instance.query("DROP TABLE hits_all ON CLUSTER cluster1")
instance.query("DROP TABLE hits_all ON CLUSTER cluster1")
instance.query("DROP TABLE hits ON CLUSTER cluster0")
instance.query("DROP TABLE hits ON CLUSTER cluster1")
def test_copy_simple(started_cluster):