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

[MetricsAdvisor] Bug: service call fails when attempting to update certain Data Feeds #17726

Closed
kinelski opened this issue Dec 30, 2020 · 2 comments · Fixed by #18086
Closed
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Cognitive - Metrics Advisor Service This issue points to a problem in the service.

Comments

@kinelski
Copy link
Member

kinelski commented Dec 30, 2020

Data Feeds created with Azure Application Insights, Azure Cosmos DB, and Azure Data Explorer always fail during update. A similar error message is returned in all scenarios. This one is the outcome of an attempt to update an Azure Application Insights Data Feed:

{"code":"BadRequest","message":"JSON parse error: Cannot deserialize value of type com.microsoft.powerai.contract.thirdparty.metadata.enumlist.DataSourceType from String "AzureApplicationInsights": value not one of declared Enum instance names: [ObjectStore, KVP, Kafka, HttpRequest, CosmosDB, Cosmos, SqlServer, MongoDB, PostgreSql, Cube, Mdm, None, EventHub, Elasticsearch, AzureTable, MySql, Kusto, DataCopIScope, JSON, DataLakeStructured, iScope, AzureBlob, AzureDataLakeStorageGen2, API, LogAnalytics, xCard, ApplicationInsights, InfluxDB]"}

Service seems to be expecting the enum instance names CosmosDB and ApplicationInsights, while the swagger specifies AzureCosmosDB and AzureApplicationInsights (AzureDataExplorer is never mentioned in the error message).

12 tests were disabled in DataFeedLiveTests because of this bug. All of them need to be enabled again once this is fixed.

@kinelski kinelski added bug This issue requires a change to an existing behavior in the product in order to be resolved. Service This issue points to a problem in the service. Cognitive - Metrics Advisor labels Dec 30, 2020
@kinelski kinelski added this to the Backlog milestone Dec 30, 2020
@ghost
Copy link

ghost commented Dec 30, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @wmengmsft, @MehaKaushik, @shurd

@kinelski kinelski changed the title [MetricsAdvisor] Bug: service call fails when attempting to update certain Data Feed [MetricsAdvisor] Bug: service call fails when attempting to update certain Data Feeds Dec 30, 2020
@kinelski kinelski self-assigned this Jan 12, 2021
@kinelski
Copy link
Member Author

kinelski commented Jan 12, 2021

After investigation, this seems an issue about swagger inconsistency with the actual behavior of the service. The swagger defines the following possible dataSourceTypes during an update: AzureApplicationInsights, AzureCosmosDB, and AzureDataExplorer.

However, the service expects the following strings during update: ApplicationInsights, CosmosDB, and Kusto, respectively. This is inconsistent with the behavior of the CreateDataFeed method as well.

Follow-up: discuss with the service team about what's the expected behavior and what should be updated (client, service, or swagger).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Cognitive - Metrics Advisor Service This issue points to a problem in the service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant