简体   繁体   English

在Azure Blob存储中使用DownloadBlockList时的Blob顺序

[英]Order of blobs when using DownloadBlockList in Azure blob storage

I am implementing a service that is supposed to save chunks of data passed into it to Azure as BlockBlob. 我正在实现一项服务,该服务应将传递给它的数据块作为BlockBlob保存到Azure。 To be able to append my chunks as blocks to existing BlockBlob I call DownloadBlockList to get the list of those chunks that have already been added and add new one at the end before using PostBlockList. 为了能够将我的块作为块追加到现有BlockBlob中,我调用DownloadBlockList以获取已添加的那些块的列表,并在使用PostBlockList之前在末尾添加新块。

The question is - does azure .net library guarantee that the order of the list that is returned by DownloadBlockList is constant and corresponds to the order I've been adding those blocks? 问题是-azure .net库是否可以保证DownloadBlockList返回的列表的顺序是恒定的,并且与我一直添加这些块的顺序相对应?

Based on my quick tests this assumption is correct, but I couldn't find any official confirmation for that behaviour in documentation. 根据我的快速测试,此假设是正确的,但我在文档中找不到任何针对该行为的官方确认。

From Get Block List REST API Documentation : Get Block List REST API Documentation

The list of committed blocks is returned in the same order that they were committed by the Put Block List operation. 已提交块的列表以与“放入阻止列表”操作所提交的顺序相同的顺序返回。 No block may appear more than once in the committed block list. 在已提交的阻止列表中,任何阻止都不能出现超过一次。

Since .Net SDK is simply a wrapper around the REST API, I would say your assumption is correct. 由于.Net SDK只是REST API的包装,因此我想说您的假设是正确的。 It returns the block list that was committed. 它返回已提交的阻止列表。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用新的 Azure.Storage.Blobs 时如何计算存储帐户中 Blob 存储容器的总大小 - How to calculate the total size of Blob storage containers in an storage account when using the new Azure.Storage.Blobs 使用 Azure.Storage.Blobs 枚举大型 Azure BLOB 容器 - Enumerating large Azure BLOB containers using Azure.Storage.Blobs 使用块 blob 将应用服务日志保存到 Azure Blob 存储 - Save App service log into Azure Blob Storage, using Block blobs 如何使用 Azure.Storage.Blobs BlobClient 检索 blob 目录路径中的 blob? - How to retrieve blobs within a blob directory path using the Azure.Storage.Blobs BlobClient? 在 Azure Blob 存储中查找所有带有前置的 Blob - Find all blobs with prepend in Azure Blob Storage Azure Blob存储列表容器和blob - Azure Blob Storage list container and blobs 如何使用 Azure.Storage.Blobs 程序集对 Azure blob 存储操作设置重试策略? - How do I set a retry policy on an Azure blob storage operation using the Azure.Storage.Blobs assembly? 无法使用 Azure.Storage.Blobs NuGet 包将文件上传到 Azure Blob 存储 - Unable to upload a file to Azure Blob Storage using Azure.Storage.Blobs NuGet package 如何使用 C# 中的 Azure.Storage.Blobs 以 ByteArray 格式从 Azure 存储 blob 中获取文件 - How to get file from Azure storage blob in a ByteArray format using Azure.Storage.Blobs in C# 如何仅使用组织中的 Azure Active Directory 访问 Azure blob 存储中的 Blob 数据 - How to aceess Blobs data in Azure blob storage using only for Azure Active directory in an organization
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM