[ 
https://issues.apache.org/jira/browse/ATLAS-1536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857704#comment-15857704
 ] 

Sharmadha Sainath commented on ATLAS-1536:
------------------------------------------

Following exception is thrown in Console Tab :

{code}
Uncaught TypeError: Cannot read property 'position' of undefined
    at EntityDetailTableLayoutView.js:63
    at underscore-min.js:5
    at Function.m.map.m.collect (underscore-min.js:5)
    at Function.m.sortBy (underscore-min.js:5)
    at n.entityTableGenerate (EntityDetailTableLayoutView.js:62)
    at n.onRender (EntityDetailTableLayoutView.js:56)
    at backbone.marionette.min.js:20
    at n.triggerMethod (backbone.marionette.min.js:20)
    at n.render (backbone.marionette.min.js:20)
    at n.render (backbone.marionette.min.js:20)
{code}

columns attribute of GET Entity Response of hive_table  : (master)
{code}
"columns": [{
                        "typeName": "hive_column",
                        "guid": "d531d700-6eda-4e4e-a666-0accb703580f"
                }, {
                        "typeName": "hive_column",
                        "guid": "2f2387d2-5ca3-47c0-994e-f5979ee2bf45"
                }]
{code}

and the hive_column's complete definition is found later as one of the JSON 
messages in the JSON Array.

columns attribute of GET Entity Response of hive_table (commit id : 
143c0f813527c85edc30d3d589837fc20bf9bb04 ) (older random commit)
{code}
"columns": [{
                        "typeName": "hive_column",
                        "attributes": {
                                "owner": "admin",
                                "qualifiedName": "default.table1.id@primary",
                                "name": "id",
                                "description": null,
                                "comment": null,
                                "position": 0,
                                "type": "int",
                                "table": {
                                        "typeName": "hive_table",
                                        "guid": 
"866d0efc-a3f0-4a5b-ba34-7e937ae1b8e9",
                                        "status": "ACTIVE",
                                        "version": 0
                                }
                        },
                        "guid": "d887b1e8-7714-4efc-be2b-12b133ff3dc5",
                        "status": "ACTIVE",
                        "createdBy": "anonymous",
                        "updatedBy": "anonymous",
                        "createTime": 1486544258185,
                        "updateTime": 1486544258185,
                        "version": 0
                }]

{code}

hence , position attribute is not found since typeName and guid are the only 
attributes found.

Thanks [~ayubkhan] for finding this.

> UI Regression : Properties tab in UI of hive_table is processing/buffering 
> forever.
> -----------------------------------------------------------------------------------
>
>                 Key: ATLAS-1536
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1536
>             Project: Atlas
>          Issue Type: Bug
>          Components: atlas-webui
>    Affects Versions: 0.8-incubating
>            Reporter: Sharmadha Sainath
>            Priority: Critical
>             Fix For: 0.8-incubating
>
>
> /api/atlas/v2/entity/guid/<hive_table_guid> returned result in 260 ms. 
> Properties Tab takes forever to come up . Other tab "Tags" which depends on 
> the same API call shows up results correctly.
> This happens only for hive_table . Other entities' Properties tab loads 
> correctly. Verified with hive_column,hive_db,falcon_cluster,hdfs_path etc.,



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to