2017-07-13 5 views
1

私たちの環境では、ブロブをダウンロードしていますが、ファイルが約60%ダウンロードされて何も起こらないという現象が見られることがあります。エラーも返されません。これにより、ダウンロードが無期限にスタックされます。書き込まれたファイルのハンドルは解放されません。私は、TransferSchedulerクラスのStartSchedule()メソッドで作成されているタスクが無限に実行されていると仮定しています。ダンプは何も明らかにしません。何が問題になるのかを理解する方法はありますか? 私はC#コンソールプロジェクトを作成したが、私はあなたが言及した問題をREPROすることはできません、でも私は、テストのための4Gサイズのファイルを使用したバージョン0.5.0Azureデータ移動ライブラリ - Blobダウンロードが固まる

答えて

0

を使用しています。私はMicrosoft.Azure.Storage.DataMovement SDKバージョン0.5.0と0.6.0でテストします。以下は私がテストに使用したコードです。

string storageConnectionString = "connection string"; 
    CloudStorageAccount account = CloudStorageAccount.Parse(storageConnectionString); 
    CloudBlobClient blobClient = account.CreateCloudBlobClient(); 
    CloudBlobContainer blobContainer = blobClient.GetContainerReference("container name"); 
    blobContainer.CreateIfNotExists(); 
    string destPath = "file path"; 
    CloudBlockBlob sourceBlob = blobContainer.GetBlockBlobReference("blob name"); 
    TransferManager.Configurations.ParallelOperations = 64; 
    // Setup the transfer context and track the download progress 
    SingleTransferContext context = new SingleTransferContext 
    { 
     ProgressHandler = new Progress<TransferStatus>(progress => 
     { 
       Console.WriteLine("Bytes download: {0}", progress.BytesTransferred); 
     }) 
    }; 
    // download thee blob 
    var task = TransferManager.DownloadAsync(
    sourceBlob, destPath, null, context, CancellationToken.None); 
    task.Wait(); 

enter image description here

関連する問題