You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/05 14:54:00 UTC

[jira] [Commented] (KARAF-6629) Memory leak in elasticsearch rest appender

    [ https://issues.apache.org/jira/browse/KARAF-6629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17052207#comment-17052207 ] 

ASF GitHub Bot commented on KARAF-6629:
---------------------------------------

fpapon commented on pull request #124: [KARAF-6629] Memory leak in elasticsearch rest appender
URL: https://github.com/apache/karaf-decanter/pull/124
 
 
   Remove refresh to avoid caching data by the http rest client.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Memory leak in elasticsearch rest appender
> ------------------------------------------
>
>                 Key: KARAF-6629
>                 URL: https://issues.apache.org/jira/browse/KARAF-6629
>             Project: Karaf
>          Issue Type: Bug
>          Components: decanter
>    Affects Versions: decanter-2.2.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Francois Papon
>            Priority: Major
>             Fix For: decanter-2.3.0
>
>
> The elasticsearch rest appender sends data to elasticsearch with a refresh triggered:
> {code:java}
> client.performRequest("POST", endpoint, Collections.singletonMap("refresh", "true"), request); {code}
> The problem is that the refresh result is cached in the Elasticsearch REST client, causing a bunch of useless HashMap.
> The "auto-refresh" is not needed anymore and should be removed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)