[infinispan-issues] [JBoss JIRA] (ISPN-10983) Infinispan RestClientOkHttp keeping the process alive

Gustavo Fernandes (Jira) issues at jboss.org
Tue Nov 26 04:53:01 EST 2019


    [ https://issues.jboss.org/browse/ISPN-10983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817736#comment-13817736 ] 

Gustavo Fernandes edited comment on ISPN-10983 at 11/26/19 4:52 AM:
--------------------------------------------------------------------

The Rest client keeps connections pools open, so it does not exit normally. You need to call
{code:java}
restClient.close();
{code}

 after you're done with it 


was (Author: gustavonalle):
The Rest client keeps connections pools open, so it does not exit normally. You need to call {{ restClient.close(); }} after you're done with it 

> Infinispan RestClientOkHttp keeping the process alive
> -----------------------------------------------------
>
>                 Key: ISPN-10983
>                 URL: https://issues.jboss.org/browse/ISPN-10983
>             Project: Infinispan
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 10.1.0.Beta1
>            Reporter: Gustavo Lira Silva
>            Assignee: Gustavo Fernandes
>            Priority: Major
>
> RestClientOkHttp is keeping the process alive, the process is async so the response are return, we are able to get the body response but the process still alive
> For example:
> {code:java}
> RestClientOkHttp restClient = new RestClientOkHttp(new RestClientConfigurationBuilder().build());
> RestResponse response = restClient.cacheManager("default").stats().toCompletableFuture().get();
> System.out.println(response.getBody());
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list