mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge pull request #6080 from abyss7/issue-6071
Check background_task_handle before use
This commit is contained in:
commit
56131a7fe7
@ -27,7 +27,8 @@ 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'.
|
||||
storage.background_task_handle->wake();
|
||||
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