[infinispan-issues] [JBoss JIRA] Commented: (ISPN-858) MIMECacheEntry requires a version

Manik Surtani (JIRA) jira-events at lists.jboss.org
Tue Jan 4 12:40:17 EST 2011


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

Manik Surtani commented on ISPN-858:
------------------------------------

Right, timestamps are poor for this anyway.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11

calcETag() is incorrect.  

https://github.com/infinispan/infinispan/blob/master/server/rest/src/main/scala/org/infinispan/rest/Server.scala#L129

Perhaps an incremental (atomic) counter?  But that may cause unnecessary HTTP cache invalidation.  SHA hash on the byte[] contents of the MIMEEntry?  Maybe reuse the MurmurHash impl in org.infinispan.util.hash ?


> MIMECacheEntry requires a version
> ---------------------------------
>
>                 Key: ISPN-858
>                 URL: https://issues.jboss.org/browse/ISPN-858
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Cache Server
>    Affects Versions: 4.2.0.Final, 5.0.0.ALPHA1
>            Reporter: Galder Zamarreño
>            Assignee: Galder Zamarreño
>             Fix For: 4.2.1.Final, 5.0.0.BETA1
>
>
> ETag calculation requires MIMECacheEntry to carry a version similar to HotRod/Memcached in order to avoid collisions with closely followed updates.

-- 
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