{"action":"created","issue":{"url":"https://api.github.com/repos/hermannpencole/nifi-config/issues/7","repository_url":"https://api.github.com/repos/hermannpencole/nifi-config","labels_url":"https://api.github.com/repos/hermannpencole/nifi-config/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hermannpencole/nifi-config/issues/7/comments","events_url":"https://api.github.com/repos/hermannpencole/nifi-config/issues/7/events","html_url":"https://github.com/hermannpencole/nifi-config/issues/7","id":246004555,"number":7,"title":"Not possible to undeploy the template when a queue is not empty","user":{"login":"bbossola-tesco","id":29372448,"avatar_url":"https://avatars1.githubusercontent.com/u/29372448?v=4","gravatar_id":"","url":"https://api.github.com/users/bbossola-tesco","html_url":"https://github.com/bbossola-tesco","followers_url":"https://api.github.com/users/bbossola-tesco/followers","following_url":"https://api.github.com/users/bbossola-tesco/following{/other_user}","gists_url":"https://api.github.com/users/bbossola-tesco/gists{/gist_id}","starred_url":"https://api.github.com/users/bbossola-tesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbossola-tesco/subscriptions","organizations_url":"https://api.github.com/users/bbossola-tesco/orgs","repos_url":"https://api.github.com/users/bbossola-tesco/repos","events_url":"https://api.github.com/users/bbossola-tesco/events{/privacy}","received_events_url":"https://api.github.com/users/bbossola-tesco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-27T11:04:28Z","updated_at":"2017-07-27T13:40:22Z","closed_at":null,"body":"If any queue in the processor is not empty at the time of the command then the processor would not be deployed because of a conflict.\r\n\r\nStacktrace from the client:\r\n\r\n2017-07-27 11:08:05 | ERROR | [main] c.g.h.n.c.Main:121 - Conflict\r\ncom.github.hermannpencole.nifi.swagger.ApiException: Conflict\r\n        at com.github.hermannpencole.nifi.swagger.ApiClient.handleResponse(ApiClient.java:1066)\r\n        at com.github.hermannpencole.nifi.swagger.ApiClient.execute(ApiClient.java:989)\r\n        at com.github.hermannpencole.nifi.swagger.client.ProcessGroupsApi.removeProcessGroupWithHttpInfo(ProcessGroupsApi.java:2882)\r\n        at com.github.hermannpencole.nifi.swagger.client.ProcessGroupsApi.removeProcessGroup(ProcessGroupsApi.java:2866)\r\n        at com.github.hermannpencole.nifi.config.service.TemplateService.undeploy(TemplateService.java:98)\r\n        at com.github.hermannpencole.nifi.config.Main.main(Main.java:116)\r\nException in thread \"main\" com.github.hermannpencole.nifi.config.model.ConfigException: Conflict: Queue not empty for 3876beb9-2781-4a19-1321-c98080218d05\r\n        at com.github.hermannpencole.nifi.config.Main.main(Main.java:122)\r\nCaused by: com.github.hermannpencole.nifi.swagger.ApiException: Conflict\r\n        at com.github.hermannpencole.nifi.swagger.ApiClient.handleResponse(ApiClient.java:1066)\r\n        at com.github.hermannpencole.nifi.swagger.ApiClient.execute(ApiClient.java:989)\r\n        at com.github.hermannpencole.nifi.swagger.client.ProcessGroupsApi.removeProcessGroupWithHttpInfo(ProcessGroupsApi.java:2882)\r\n        at com.github.hermannpencole.nifi.swagger.client.ProcessGroupsApi.removeProcessGroup(ProcessGroupsApi.java:2866)\r\n        at com.github.hermannpencole.nifi.config.service.TemplateService.undeploy(TemplateService.java:98)\r\n        at com.github.hermannpencole.nifi.config.Main.main(Main.java:116)\r\n"},"comment":{"url":"https://api.github.com/repos/hermannpencole/nifi-config/issues/comments/318365133","html_url":"https://github.com/hermannpencole/nifi-config/issues/7#issuecomment-318365133","issue_url":"https://api.github.com/repos/hermannpencole/nifi-config/issues/7","id":318365133,"user":{"login":"bbossola-tesco","id":29372448,"avatar_url":"https://avatars1.githubusercontent.com/u/29372448?v=4","gravatar_id":"","url":"https://api.github.com/users/bbossola-tesco","html_url":"https://github.com/bbossola-tesco","followers_url":"https://api.github.com/users/bbossola-tesco/followers","following_url":"https://api.github.com/users/bbossola-tesco/following{/other_user}","gists_url":"https://api.github.com/users/bbossola-tesco/gists{/gist_id}","starred_url":"https://api.github.com/users/bbossola-tesco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbossola-tesco/subscriptions","organizations_url":"https://api.github.com/users/bbossola-tesco/orgs","repos_url":"https://api.github.com/users/bbossola-tesco/repos","events_url":"https://api.github.com/users/bbossola-tesco/events{/privacy}","received_events_url":"https://api.github.com/users/bbossola-tesco/received_events","type":"User","site_admin":false},"created_at":"2017-07-27T13:40:22Z","updated_at":"2017-07-27T13:40:22Z","body":"Okay thanks, I think it's fair. I think then this opens another issue, in the sense, how do I know that a process group has been completely \"flushed\" and it's ready for redeployment? Ideally an option as \"flush+deploy\" with a timeout, or something like that.... dunno how that could be structured tough, in terms of \"how\". I am okay for the deployment task to fail if it takes too much, but it should be in a position to succeed if the conditions are good (i.e. the queues can be emptied timely). I do not want to have a human being to access NiFi. manually shutting down component by component, making sure that the queues are empty, and then click the \"deploy\" button on the CI.\r\n\r\n I can also code properly with TDD, so I could PR to this project but I'd like to have your guidance on the matter."}}
{"actor":{"display_login":"bbossola-tesco"}}