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

Fixing "sequence contains no elements" when querying storage #2015

Closed
wants to merge 1 commit into from

Conversation

debugthings
Copy link

When using this SDK to pull from either the classic or "new" storage model you cannot get any of the metrics via any combination of the filters. The exception thrown is "Sequence contains no matching element."

The fix is to remove the filtering operation out of the Group operation.

This screen shot is from Azure Powershell as it produces the quickest repro.

image

All existing tests for Insights.Test pass.

image

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@azurecla
Copy link

Hi @jldgit, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@markcowl
Copy link
Member

@azuresdkci test this please

@markcowl markcowl assigned shefaliv and asheniam and unassigned shefaliv May 23, 2016
@markcowl
Copy link
Member

@asheniam Can you have someone on the insights team take a look at this PR contribution?

@markcowl
Copy link
Member

@asheniam ping.

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@markcowl
Copy link
Member

@azuresdkci add to whitelist

// Filter definitions by timegrain
var timegraindefinitions = from d in definitions
where d.MetricAvailabilities.Count > 0
&& d.MetricAvailabilities[0].TimeGrain == filter.TimeGrain
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work for metrics with multiple allowed timegrains, for which the query specifies one other than the first. It needs to be able to select the appropriate availability based on the requested timegrain.

@markcowl
Copy link
Member

markcowl commented Jul 20, 2016

@davmc, thanks for the review. @debugthings can you make the suggested changes?

@markcowl
Copy link
Member

@debugthings Please respond to the review comments. Due to age, we will have to close this PR at the end of the week if there is no further response.

@shahabhijeet
Copy link
Member

Due to the age of the PR and checks failing for the PR, closing this PR

@markcowl markcowl reopened this Aug 18, 2016
@azurecla
Copy link

Hi @debugthings, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@markcowl
Copy link
Member

reopenfing at the request of the owner, who will be makign the suggested changes

@markcowl
Copy link
Member

@debugthings I reopend this at your reuest, please update, or I will have to close this again.

@markcowl
Copy link
Member

@debugthings Closing due to inactivity

@markcowl markcowl closed this Sep 13, 2016
@debugthings
Copy link
Author

It's been forever but I wanted to close the loop on this. After really digging in with the customer we found that they were trying to pull two metric types that had incompatible time grains. They assumed the free space metric had the same granularity as data in/out.

So when the application was run they just dumped all metrics into one query which generated the error above.

In short, there is no need for a code change and there is no bug.

kinelski added a commit that referenced this pull request Nov 14, 2023
…in (#39965)

* Initial generated project (#1987)

* Added admin live tests for classifiers (#2012)

* Added admin live tests for models (#2015)

* Misc operations + classify live tests (#2017)

* Added admin live tests for misc operations

* Added main live tests for classifiers

* Generated from latest spec + added recordings (#39936)

* Generated from the latest spec

* Added recordings
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

Successfully merging this pull request may close these issues.

8 participants