[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1035) Servers should avoid reading key/values multiple times per request

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Thu Apr 7 10:28:33 EDT 2011


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

Galder Zamarreño commented on ISPN-1035:
----------------------------------------

>From an implementation point of view, a couple of states need to be hooked with Netty's ReplayingDecoder in order to know when the keys has been read, and when the value has been read, since you only want these to be done once.

> Servers should avoid reading key/values multiple times per request
> ------------------------------------------------------------------
>
>                 Key: ISPN-1035
>                 URL: https://issues.jboss.org/browse/ISPN-1035
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Cache Server
>    Affects Versions: 4.2.1.FINAL, 5.0.0.BETA1
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>            Priority: Critical
>              Labels: hotrod, memcached
>             Fix For: 4.2.2.BETA1, 5.0.0.BETA2, 5.0.0.FINAL
>
>
> When Infinispan servers need to decode keys and values only once per request, otherwise it can generate a lot of garbage byte[]s instances. This is particularly important when bigger key/values are used. The way to do that is tell Netty about intermediate stages of reading a request so that the entire request is not re-read if the entire request has not been read in one go.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list