What is the expected behavior when a cache is configured to point back
to itself for lateral puts?

Assume this is the config for server1:

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.PutOnlyMode=true
jcs.auxiliary.LTCP.attributes.TcpServers=server1:1110,server2:1110,server3:1110,server4:1110,etc
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110

I ask because I'm trying to simplify a multi-server configuration
issue.  UDP isn't available, and creating distinct configurations for
8 servers presents difficulties.

It appears to cause an exception to be thrown.  I can live with that,
just want to ensure the result is benign for server1, and cache puts
work for server2, server3, etc...

Here's log output when testing locally:

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.PutOnlyMode=true
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1110
jcs.auxiliary.LTCP.attributes.TcpServers=localhost:1110

     [java] NFO:Instance for [localhost:1110:1110] is null, creating
     [java] INFO:Creating TCP service, lca = localhost:1110:1110
     [java] INFO:Attempting connection to [localhost]
     [java] SEVERE:Could not create sender to [localhost:1110] --
Socket is null, cannot connect to localhost:1110
     [java] SEVERE:Failure, lateral instance will use zombie service
     [java] java.io.IOException: Socket is null, cannot connect to
localhost:1110
     [java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.init(LateralTCPSender.java:148)
     [java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPSender.<init>(LateralTCPSender.java:118)
     [java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService.<init>(LateralTCPService.java:74)
     [java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.<init>(LateralTCPCacheManager.java:173)
     [java]     at
org.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPCacheManager.getInstance(LateralTCPCacheManager.java:

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jcs-users-h...@jakarta.apache.org

Reply via email to