mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Revert disabled tests
This commit is contained in:
parent
46fcff26b0
commit
6253e9b97b
@ -269,7 +269,6 @@ void StorageDistributedDirectoryMonitor::processFile(const std::string & file_pa
|
||||
{
|
||||
LOG_TRACE(log, "Started processing `{}`", file_path);
|
||||
auto timeouts = ConnectionTimeouts::getTCPTimeoutsWithFailover(storage.global_context->getSettingsRef());
|
||||
auto connection = pool->get(timeouts);
|
||||
|
||||
try
|
||||
{
|
||||
@ -280,8 +279,11 @@ void StorageDistributedDirectoryMonitor::processFile(const std::string & file_pa
|
||||
Settings insert_settings;
|
||||
std::string insert_query;
|
||||
ClientInfo client_info;
|
||||
|
||||
readHeader(in, insert_settings, insert_query, client_info, log);
|
||||
|
||||
auto connection = pool->get(timeouts, &insert_settings);
|
||||
|
||||
RemoteBlockOutputStream remote{*connection, timeouts, insert_query, insert_settings, client_info};
|
||||
|
||||
remote.writePrefix();
|
||||
|
@ -46,29 +46,21 @@ def test_prefer_localhost_replica_1():
|
||||
assert int(n1.query('SELECT count() FROM data')) == 10
|
||||
assert int(n2.query('SELECT count() FROM data')) == 0
|
||||
|
||||
|
||||
# These tests temporary (or not) disabled, because setting load_balancing
|
||||
# doesn't override default value (random) neither INSERT nor CREATE query.
|
||||
|
||||
@pytest.mark.skip(reason="Setting load_balancing doesn't affect inserts")
|
||||
def test_prefer_localhost_replica_1_load_balancing_in_order():
|
||||
insert_data(load_balancing='in_order')
|
||||
assert int(n1.query('SELECT count() FROM data')) == 10
|
||||
assert int(n2.query('SELECT count() FROM data')) == 0
|
||||
|
||||
@pytest.mark.skip(reason="Setting load_balancing doesn't affect inserts")
|
||||
def test_prefer_localhost_replica_0_load_balancing_nearest_hostname():
|
||||
insert_data(load_balancing='nearest_hostname', prefer_localhost_replica=0)
|
||||
assert int(n1.query('SELECT count() FROM data')) == 10
|
||||
assert int(n2.query('SELECT count() FROM data')) == 0
|
||||
|
||||
@pytest.mark.skip(reason="Setting load_balancing doesn't affect inserts")
|
||||
def test_prefer_localhost_replica_0_load_balancing_in_order():
|
||||
insert_data(load_balancing='in_order', prefer_localhost_replica=0)
|
||||
assert int(n1.query('SELECT count() FROM data')) == 0
|
||||
assert int(n2.query('SELECT count() FROM data')) == 10
|
||||
|
||||
@pytest.mark.skip(reason="Setting load_balancing doesn't affect inserts")
|
||||
def test_prefer_localhost_replica_0_load_balancing_in_order_sync():
|
||||
insert_data(load_balancing='in_order', prefer_localhost_replica=0, insert_distributed_sync=1)
|
||||
assert int(n1.query('SELECT count() FROM data')) == 0
|
||||
|
Loading…
Reference in New Issue
Block a user