Azure / Azure/azure-storage-python

uploaded files sometimes get truncated

オープン
#632 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
343
フォーク
243
PR マージ指標
30日以内にマージされた PR はありません

説明

### Which service(blob, file, queue) does this issue concern?
Blob storage

### Which version of the SDK was used? Please provide the output of `pip freeze`.
azure-storage==0.34.3
azure-storage-blob==1.5.0
azure-storage-common==1.4.0
azure-storage-file==1.4.0
azure-storage-nspkg==3.0.0
azure-storage-queue==1.4.0

### What problem was encountered?
When uploading a json file with `BlockBlobService().create_blob_from_path`, sometimes the file gets truncated. This happens both when a file with the same name already exists in the blob storage and when it does not. It does not happen with all json files. I have one json file that contains the full dataset, for which upload does not give any issues. If I upload a json file with only a subset of the data, the file gets truncated. Both files were created in the same way.
Truncation happens during upload, the local version I have of the files are perfectly fine. Unfortunately I cannot share the files in question.
Uploading the file through the portal does not give any issues, so I suspect it has nothing to do with the file itself.
The issue is very similar to this one: https://github.com/Azure/azure-storage-azcopy/issues/207

### Have you found a mitigation/solution?
I manually upload the files through the portal, but this solution is not tenable.

Note: for table service, please post the issue here instead: https://github.com/Azure/azure-cosmosdb-python.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

BlockBlobService().create_blob_from_path から開始し、issue に記載されている 2 つの JSON ファイルのケースでアップロードを再現して、ローカルの内容とアップロード後の内容を比較します。一部のアップロードが切り詰められる理由を特定し、影響を受けるファイルが完全な状態でアップロードされることを確認できれば完了です。issue には、指定されたテストやソースファイルはありません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, python
領域
backend, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。