fixing tests

This commit is contained in:
Sema Checherinda 2024-06-14 18:32:12 +02:00
parent e4050334bb
commit 99167d3b87
3 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,7 @@ namespace ErrorCodes
Connection::~Connection()
{
if (connected)
disconnect();
Connection::disconnect();
}
Connection::Connection(const String & host_, UInt16 port_,

View File

@ -147,7 +147,8 @@ void WriteBufferFromHDFS::finalizeImpl()
WriteBufferFromHDFS::~WriteBufferFromHDFS()
{
finalize();
if (!canceled)
finalize();
}
}

View File

@ -51,8 +51,8 @@ void StorageObjectStorageSink::onCancel()
{
std::lock_guard lock(cancel_mutex);
cancelBuffers();
cancelled = true;
releaseBuffers();
cancelled = true;
}
void StorageObjectStorageSink::onException(std::exception_ptr)