Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-83

Recovery Element from Lateral Auxiliary Cache when stop/start tomcat occurs

    XMLWordPrintableJSON

    Details

      Description

      This issue is relationed with #JCS-39 issue: https://issues.apache.org/jira/browse/JCS-39;

      I have declared a region with a TCP Lateral Cache Auxiliary with two separate servers.
      If the two Tomcats on the two machines are working than everything works fine. When one Tomcat update the cache it is seen also on the other Tomcat.
      Now the issue arises when I restart one of the Tomcats . Than it loses all cache elements and if I make a get to an element that exists in the other Tomcat I get a null.
      My allowGet flag is set to True but it still not works. In my opinion, something is missing in my cache.ccf, could you find out what is?

      Here is the cache.ccf file:

      1. DEFAULT CACHE REGION
      2. sets the default aux value for any non configured caches
        jcs.default=LTCP
        jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
        jcs.default.cacheattributes.MaxObjects=100
        jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
        jcs.default.cacheattributes.UseLateral=true
        jcs.default.cacheattributes.UseRemote=false
        jcs.default.cacheattributes.UseDisk=false
        jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
        jcs.default.elementattributes.IsEternal=false
        jcs.default.elementattributes.IsSpool=false
        jcs.default.elementattributes.IsRemote=false
        jcs.default.elementattributes.IsLateral=true

      #LTCP
      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.TcpListenerPort=11111
      jcs.auxiliary.LTCP.attributes.AllowGet=true
      jcs.auxiliary.LTCP.attributes.IssueRemoveOnPut=false
      jcs.auxiliary.LTCP.attributes.Receive=true
      jcs.auxiliary.LTCP.attributes.UdpDiscoveryAddr=228.5.6.8
      jcs.auxiliary.LTCP.attributes.UdpDiscoveryPort=6780
      jcs.auxiliary.LTCP.attributes.UdpDiscoveryEnabled=true
      jcs.auxiliary.LTCP.attributes.FilterRemoveByHashCode=false
      jcs.auxiliary.LTCP.attributes.SocketTimeoOt=1001
      jcs.auxiliary.LTCP.attributes.OpenTimeOut=2002

        Attachments

          Activity

            People

            • Assignee:
              tv Thomas Vandahl
              Reporter:
              jlomatheus Julio Matheus Vaz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: