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() Connection::~Connection()
{ {
if (connected) if (connected)
disconnect(); Connection::disconnect();
} }
Connection::Connection(const String & host_, UInt16 port_, Connection::Connection(const String & host_, UInt16 port_,

View File

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

View File

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