mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge pull request #6080 from abyss7/issue-6071
Check background_task_handle before use
This commit is contained in:
commit
56131a7fe7
@ -27,6 +27,7 @@ void MergeTreeBlockOutputStream::write(const Block & block)
|
||||
PartLog::addNewPart(storage.global_context, part, watch.elapsed());
|
||||
|
||||
/// Initiate async merge - it will be done if it's good time for merge and if there are space in 'background_pool'.
|
||||
if (storage.background_task_handle)
|
||||
storage.background_task_handle->wake();
|
||||
}
|
||||
}
|
||||
|
@ -174,6 +174,7 @@ def test_kafka_settings_new_syntax(kafka_cluster):
|
||||
result += instance.query('SELECT * FROM test.kafka')
|
||||
if kafka_check_result(result):
|
||||
break
|
||||
print result
|
||||
kafka_check_result(result, True)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user