atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ATLAS-2321) V1 DSL search fails with error when the query doesn't return any results
Date Fri, 22 Dec 2017 01:18:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Madhan Neethiraj updated ATLAS-2321:
------------------------------------
    Summary: V1 DSL search fails with error when the query doesn't return any results  (was:
V1 DSL search fails with JsonMappingException when the query doesn't return any results)

> V1 DSL search fails with error when the query doesn't return any results
> ------------------------------------------------------------------------
>
>                 Key: ATLAS-2321
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2321
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 1.0.0
>            Reporter: Sharmadha Sainath
>            Assignee: Madhan Neethiraj
>
> V1 DSL query :
> {{http://atlas-host:21000/api/atlas/discovery/search/dsl?query=hive_db+where+name+%3D+%27xyz%27}}
> fails with the following error in Atlas logs when Atlas doesn't have a hive_db entity
with name='xyz'.
> {noformat}
> java.io.IOException: not an array
> 	at org.apache.atlas.utils.AtlasJson.parseToV1ArrayNode(AtlasJson.java:169)
> 	at org.apache.atlas.web.resources.MetadataDiscoveryResource$DSLJSONResponseBuilder.results(MetadataDiscoveryResource.java:308)
> 	at org.apache.atlas.web.resources.MetadataDiscoveryResource.searchUsingQueryDSL(MetadataDiscoveryResource.java:160)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message