[
https://issues.apache.org/jira/browse/ATLAS-3189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841520#comment-16841520
]
Diego Marino Monetti commented on ATLAS-3189:
---------------------------------------------
I don't know if it is the same issue but I found a problem in the bulk delete
of the types.
In particular, I developed some V2 Rest API, which I will submit to the Atlas
team in the next few hours, to search by service type, and delete by service
type.
The deletion is successful but the indexes are not cleaned and exceptions are
reported on the log. After long hours of work and testing I found the bug and I
solved it and I would have also made the pull request if a first REST Api I
submitted to the team (ATLAS-3180) had not been ignored by the team and if in
the meantime not the team had committed a new master (3.0), which requires, in
order to avoid trouble, to verify that there are no regressions on the new code.
In particular the transaction, first deletes the types from the cache then, on
committed, uses that same cache, where now the types are no longer there, to
delete the indexes. And obviously, not finding them, it goes wrong and does not
delete the indexes. In any case I tried to reload the same model and I didn't
check any problems but I didn't try to change the attributes of the model,
because, already, the presence of an unhandled exception in the log, from my
point of view, is an error.
> Issue with Deletes
> ------------------
>
> Key: ATLAS-3189
> URL: https://issues.apache.org/jira/browse/ATLAS-3189
> Project: Atlas
> Issue Type: Bug
> Affects Versions: 1.1.0
> Reporter: Ayush Nigam
> Priority: Blocker
> Attachments: Screen Shot 2019-05-02 at 9.59.10 PM.png, Screen Shot
> 2019-05-02 at 9.59.24 PM.png
>
>
> Hi,
> We currently have a hive model in Atlas(with no data),we tried to delete it
> by curl request,
> curl -negotiate -u admin:admin -X DELETE -H 'Content-Type: application/json'
> -H 'Accept: application/json'
> "http:/localhost:21001/api/atlas/v2/types/typedefs" -d
> "@./1030-hive_model.json"
> Above request was successful and after that we repopulated the new model with
> one attribute deleted from hive_db and made code changes accordingly.
>
> But then while running hive bridge we found that entities in basic search UI
> are not there while they are present in Advanced search.While digging deeper
> we found out that docs are itself not created in Solr/Elasticsearch while
> indexes are present.
> We tried this approach with other models too,but the issues persists.
> So to reproduce the bug.
> * Delete a model by Curl command(Clear any data before deleting the model if
> present)
> * Re post the model by curl command with some attribute deleted.
> * Populate the data
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)