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

ListSharesSegment call's marker not working as expected #59

Open
nadundesilva opened this issue Dec 7, 2021 · 5 comments
Open

ListSharesSegment call's marker not working as expected #59

nadundesilva opened this issue Dec 7, 2021 · 5 comments
Assignees

Comments

@nadundesilva
Copy link

Which version of the SDK was used?

latest (v0.8.0)

Which platform are you using? (ex: Windows, Linux, Debian)

Mac

What problem was encountered?

I have a storage account with file shares with soft delete enabled. I am trying to limit and list the fileshares iteratively in the storage account using the marker parameter. However, the marker value points to a deleted fileshare and this is causing the list call to not properly send the next set of results.

How can we reproduce the problem in the simplest way?

  1. Create storage account with soft delete enabled
  2. Create about 10 file shares and delete about 6 of them
  3. Call the ListSharesSegment method passing in marker from previous call as well as MaxResults: 2
  4. Note how the same set of results are returned.

The returned marker also points to a deleted share (I know this is opaque to us but doesn't seem like it's correct. But I could be wrong)

Have you found a mitigation/solution?

No. We have to list the full list of shares as of now

@zezha-msft
Copy link
Contributor

@mohsha-msft could you please attempt a repro?

@mohsha-msft
Copy link

mohsha-msft commented Dec 14, 2021

Hey @nadundesilva ,

Thanks for reaching out!
Let me try to reproduce the issue. But if you want to view the deleted shares, you can do that by specifying the include=metadata,snapshots,deleted parameter.

 ListSharesSegment(ctx, azfile.Marker{}, azfile.ListSharesOptions{Detail: azfile.ListSharesDetail{Deleted:true}})

@nadundesilva
Copy link
Author

nadundesilva commented Dec 20, 2021

@mohsha-msft actually my requirement is to not include the deleted shares at all in the listing calls (When using the marker even though I do not specify the deleted option, the marker is pointing to a deleted share).

Also the SDK (version - v0.8.0) doesn't yet seem to have the deleted option.
Screenshot 2021-12-20 at 3 43 28 PM

@nadundesilva
Copy link
Author

Any update on this ? @mohsha-msft

@nadundesilva
Copy link
Author

Any chance we can look into this issue ? 🤔 @zezha-msft @mohsha-msft

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

3 participants