Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress reporting reports different values for Upload/Download (a blob) and for download for a blob and a file share service #284

Open
KlaudiuszBryjaRelativity opened this issue Oct 4, 2021 · 1 comment

Comments

@KlaudiuszBryjaRelativity

Which service(blob, file) does this issue concern?

ADLS Gen 2 (with HNS enabled)

Which version of the SDK was used?

>= 2.0.0

On which platform were you using? (.Net Framework version or .Net Core version, and OS version)

.Net Framework, Windows 10

How can the problem be reproduced? It'd be better if the code caused the problem can be shared.

  • Create structure like this (each txt file has size of 1024 bytes):
TestDs
│   file1.dat
│
├───Deep
│   │   file2.dat
│   │
│   ├───Deeper
│   │       file3.dat
│   │
│   └───DeeperEmpty
└───Empty
  • Download TestDs folder

What problem was encountered?

All folders are reported in progress.

Depends on the client:

  • for a file client the result is:
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 1024 B, Number of files transferred: 0
Bytes transferred: 1024 B, Number of files transferred: 1
Success event
Bytes transferred: 2048 B, Number of files transferred: 1
Bytes transferred: 2048 B, Number of files transferred: 2
Success event
Bytes transferred: 3072 B, Number of files transferred: 2
Bytes transferred: 3072 B, Number of files transferred: 3
Success event

Result:
        Bytes transferred: 3072 B
        Number of files transferred: 3
  • for the blob client the result is:
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 0
Bytes transferred: 0 B, Number of files transferred: 1
Bytes transferred: 0 B, Number of files transferred: 2
Success event
Success event
Bytes transferred: 0 B, Number of files transferred: 3
Success event
Bytes transferred: 0 B, Number of files transferred: 4
Success event
Bytes transferred: 1024 B, Number of files transferred: 4
Bytes transferred: 1024 B, Number of files transferred: 5
Success event
Bytes transferred: 2048 B, Number of files transferred: 5
Bytes transferred: 2048 B, Number of files transferred: 6
Success event
Bytes transferred: 3072 B, Number of files transferred: 6
Bytes transferred: 3072 B, Number of files transferred: 7
Success event

Result:
        Bytes transferred: 3072 B
        Number of files transferred: 7

Why the blob client reports 7 transferred items? I assume that all directories were reported but why and why is it different that in case of the file share client? More important this differs between Upload and Download (in upload folders are not reported at all). Is it possible to switch some toggle to get the same behavior especially when it comes to Upload and Download to/from a blob?

Have you found a mitigation/solution?

No

@MarcinKowal
Copy link

This issue is fully reproducible even on simple blob container. Seems to me rather a bug than feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants