fix assert in test, revert debug message

This commit is contained in:
Sema Checherinda 2023-06-22 19:59:33 +02:00
parent d0bb985061
commit 2b01711565
2 changed files with 4 additions and 10 deletions

View File

@ -104,14 +104,8 @@ void Lz4DeflatingWriteBuffer::nextImpl()
if (LZ4F_isError(compressed_size))
throw Exception(
ErrorCodes::LZ4_ENCODER_FAILED,
"LZ4 failed to encode stream. LZ4F version: {}, CodeName: {},"
" in_capacity: {}, out_capacity: {}, cur_buffer_size: {}, min_compressed_block_size: {}",
LZ4F_VERSION,
LZ4F_getErrorName(compressed_size),
in_capacity,
out_capacity,
cur_buffer_size,
min_compressed_block_size);
"LZ4 failed to encode stream. LZ4F version: {}",
LZ4F_VERSION);
in_capacity -= cur_buffer_size;
in_data = reinterpret_cast<void *>(working_buffer.end() - in_capacity);

View File

@ -165,5 +165,5 @@ def test_upload_s3_fail_upload_part_when_multi_part_upload(
assert count_create_multi_part_uploads == 1
assert count_upload_parts >= 2
assert (
count_s3_errors == 2
) # the second is cancel multipart upload, s3_mock just redirects this request
count_s3_errors >= 2
)