azure-sdk-for-go: [Question] Listing snapshots using `NewSnapshotsClient().NewListPager(nil)` doesn't list snapshots sometimes

We have been experiencing this strange issue where the list of snapshots (using NewSnapshotsClient().NewListPager(nil)) doesn’t work as expected and doesn’t list the snapshots that are crated immediately before the list call.

This is how the workflow looks like

  1. Create some snapshots
  2. Wait for those snapshots to be ready (poll for snapshot with ID and make sure it has provisioning state Succeeded)
  3. List all the snapshots

The last call to list all the snapshots doesn’t list the snapshots sometimes and didn’t result into any failures. page.Value has 0 length I think. I have started same discussion in slack as well, but because of inactivity thought of raising this here as well https://gophers.slack.com/archives/CA7HK8EEP/p1703106493955089

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.

This is the contact alias.

@viveksinghggits , I ran the test consecutively in West US region, but I still cannot repro this issue. This might be related to the resource state sync up issue in specific region. I loop in ARM team to provide more insight.