Added wait before commit blocks

This commit is contained in:
Smita Kulkarni 2024-03-28 09:26:00 +01:00
parent 42a27c5c87
commit afbb3f8a50

View File

@ -150,6 +150,7 @@ void WriteBufferFromAzureBlobStorage::finalizeImpl()
if (!block_ids.empty())
{
task_tracker->waitAll();
auto block_blob_client = blob_container_client->GetBlockBlobClient(blob_path);
execWithRetry([&](){ block_blob_client.CommitBlockList(block_ids); }, max_unexpected_write_error_retries);
LOG_TRACE(log, "Committed {} blocks for blob `{}`", block_ids.size(), blob_path);