Unable to create a feed out of category which has been deleted and then recreated

Description

After a category and its relevant processor group is deleted from Kylo and NiFi respectively, if we create the category again and try to create feeds, it fails with the error message "com.thinkbiganalytics.nifi.rest.client.NifiConnectionException: Verify NiFi is running and try again"

How to reprodcue?

  1. Create a category in Kylo. Ex: "Sample Category"

  2. Create Feeds under that category. Open NiFi and locate the relevant processor group and note down it's ID

  3. Delete all the created feeds

  4. Delete "Sample Category"

  5. Open NiFi and delete the relevant processor group, in this case, "sample-category"

  6. Create a category again with the name "Sample Category"
    #Try creating feed. It will fail at the last step with the error message "com.thinkbiganalytics.nifi.rest.client.NifiConnectionException: Verify NiFi is running and try again"

Looking at the logs, Kylo tries querying NiFi REST API with the ID of the deleted processor group (Step #2 above). I think Kylo should delete the ID of the category's processor group from its metastore when one delete the category.

PS: Attached the kylo-services.log and UI error snapshot.

Environment

None

Status

Assignee

Unassigned

Reporter

Sivaprasanna

Reviewer

None

Story point estimate

None

Components

Affects versions

0.8.3.3
0.8.4

Priority

Medium
Configure