You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ramesh S (JIRA)" <ji...@apache.org> on 2018/03/14 12:03:00 UTC

[jira] [Created] (JCS-188) Lateral TCP put() and putInGroup() internally causes remove from other laterals

Ramesh S created JCS-188:
----------------------------

             Summary: Lateral TCP put() and putInGroup() internally causes remove from other laterals
                 Key: JCS-188
                 URL: https://issues.apache.org/jira/browse/JCS-188
             Project: Commons JCS
          Issue Type: Bug
          Components: TCP Lateral Cache
    Affects Versions: jcs-1.3
            Reporter: Ramesh S


We have two servers IP1 and IP2 with laterals configured. Both IP1 and IP2 are up and running. 

1) An application page puts entries into the local cache of IP1 when the page is visited from IP1.

2) Same page is visited from IP2, which also puts entries into the cache of IP2, which internally calls remove(), causing the cached entries of IP1 to get removed.  

3) Now the user again visits the same page from IP1, which reloads the cache as it was removed by the above event. As part of this put/putInGroup, remove() is called, which in turn sends an event to IP2 to remove its cache and IP2's cache gets removed now.

This seems to be a ping-pong issue. Why should the cache keep getting removed during a put/putInGroup operation of another lateral? I would like to send a remove event to other laterals only during an explicit remove and not during put/putInGroup. How to address this issue? 

 

This is the configuration we are using.

 

In IP1,

jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TcpServers=IP2:1111
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
jcs.auxiliary.LTCP.attributes.AllowGet=false

jcs.auxiliary.LTCP.attributes.AllowPut=false
jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=false

 

In IP2,

jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.socket.tcp.TCPLateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TcpServers=IP1:1111
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1111
jcs.auxiliary.LTCP.attributes.AllowGet=false

jcs.auxiliary.LTCP.attributes.AllowPut=false
jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=false

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)