Hi All,
I am getting the following exception *intermittently* when firing a DELETE
request for deleting the Process group:
http://xxx.xxx.xxx.xxx:9091/nifi-api/process-groups/103111c4-123b-14f9-a794-14795038dbdf?version=0
org.springframework.web.client.HttpClientErrorException: 409 Conflict
at
org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
~[nifi-util-1.0.0.jar:na]
at
org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:615)
~[nifi-util-1.0.0.jar:na]
at
org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:573)
~[nifi-util-1.0.0.jar:na]
at
org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529)
~[nifi-util-1.0.0.jar:na]
at
org.springframework.web.client.RestTemplate.delete(RestTemplate.java:401)
~[nifi-util-1.0.0.jar:na]
I am using Nifi 1.0.0 version.
Not sure if setting these timeout will help here:
public RestTemplate restTemplate() {
return new RestTemplate(clientHttpRequestFactory());
}
private ClientHttpRequestFactory clientHttpRequestFactory() {
HttpComponentsClientHttpRequestFactory factory = new
HttpComponentsClientHttpRequestFactory();
factory.setReadTimeout(2000);
factory.setConnectTimeout(2000);
return factory;
}
Any pointers here would be great.
Thanks,
-Nirmal
________________________________
NOTE: This message may contain information that is confidential, proprietary,
privileged or otherwise protected by law. The message is intended solely for
the named addressee. If received in error, please destroy and notify the
sender. Any use of this email is prohibited when received in error. Impetus
does not represent, warrant and/or guarantee, that the integrity of this
communication has been maintained nor that the communication is free of errors,
virus, interception or interference.