the problem I run into intermittently, is that server 1 issues a service ticket and /serviceValidate is called immediately on server 2, but server 2 cannot find the service ticket.
I turned on debug mode on net.spy.memcached client, still cannot figure out what was wrong.
dcasde01 (server 1) node: it generates ST, write and read complete
====================================================
2016-08-02 19:18:19,263 DEBUG [net.spy.memcached.MemcachedConnection] - Handling IO for: sun.nio.ch.SelectionKeyImpl@6418da19 (r=false, w=true, c=false, op={QA sa=
dcasde01.dev.medplus.com/172.18.38.130:11211, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=Cmd: 2 Opaque: 17 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com Cas: 0 Exp: 10 Flags: 0 Data Length: 777, toWrite=0, interested=4})
2016-08-02 19:18:19,263 DEBUG [net.spy.memcached.protocol.binary.StoreOperationImpl] - Transitioned state from WRITE_QUEUED to WRITING
2016-08-02 19:18:19,264 DEBUG [net.spy.memcached.protocol.binary.BinaryMemcachedNodeImpl] - After copying stuff from Cmd: 2 Opaque: 17 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com Cas: 0 Exp: 10 Flags: 0 Data Length: 777: java.nio.DirectByteBuffer[pos=859 lim=16384 cap=16384]
2016-08-02 19:18:19,264 DEBUG [net.spy.memcached.protocol.binary.StoreOperationImpl] - Transitioned state from WRITING to READING
2016-08-02 19:18:19,265 DEBUG [net.spy.memcached.MemcachedConnection] - Handling IO for: sun.nio.ch.SelectionKeyImpl@6418da19 (r=true, w=false, c=false, op={QA sa=
dcasde01.dev.medplus.com/172.18.38.130:11211, #Rops=1, #Wops=0, #iq=0, topRop=Cmd: 2 Opaque: 17 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com Cas: 0 Exp: 10 Flags: 0 Data Length: 777, topWop=null, toWrite=0, interested=1})
2016-08-02 19:18:19,267 DEBUG [net.spy.memcached.MemcachedConnection] - Selecting with delay of 1000ms
2016-08-02 19:18:19,294 INFO [org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit trail record BEGIN
=============================================================
WHO: castempadmin
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Tue Aug 02 19:18:19 UTC 2016
CLIENT IP ADDRESS: 172.18.100.57
SERVER IP ADDRESS: 172.18.38.130
=============================================================
dcasde02 (server 2) node access logs, /serviceValidate is called immediately afterwards
=============================================================================
dcasde02 (server 2) node, it failed fetching and again writes to memcached running on the other server
=============================================================================
2016-08-02 19:18:19,599 DEBUG [net.spy.memcached.MemcachedConnection] - Handling IO for: sun.nio.ch.SelectionKeyImpl@774ead62 (r=false, w=true, c=false, op={QA sa=
dcasde01.dev.medplus.com/172.18.38.130:11211, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=Cmd: 0 Opaque: 1 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com, toWrite=0, interested=4})
2016-08-02 19:18:19,606 DEBUG [net.spy.memcached.MemcachedConnection] - Handling IO for: sun.nio.ch.SelectionKeyImpl@774ead62 (r=true, w=false, c=false, op={QA sa=
dcasde01.dev.medplus.com/172.18.38.130:11211, #Rops=1, #Wops=0, #iq=0, topRop=Cmd: 0 Opaque: 1 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com, topWop=null, toWrite=0, interested=1})
2016-08-02 19:18:19,622 DEBUG [net.spy.memcached.MemcachedConnection] - Handling IO for: sun.nio.ch.SelectionKeyImpl@774ead62 (r=false, w=true, c=false, op={QA sa=
dcasde01.dev.medplus.com/172.18.38.130:11211, #Rops=0, #Wops=1, #iq=0, topRop=null, topWop=Cmd: 0 Opaque: 2 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com, toWrite=0, interested=4})
2016-08-02 19:18:19,624 DEBUG [net.spy.memcached.MemcachedConnection] - Handling IO for: sun.nio.ch.SelectionKeyImpl@774ead62 (r=true, w=false, c=false, op={QA sa=
dcasde01.dev.medplus.com/172.18.38.130:11211, #Rops=1, #Wops=0, #iq=0, topRop=Cmd: 0 Opaque: 2 Key:
ST-2-IuotzVXFdjPUucLs2ZVm-dcasde01.dev.medplus.com, topWop=null, toWrite=0, interested=1})
2016-08-02 19:18:19,635 INFO [org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - Audit trail record BEGIN
=============================================================
WHO: audit:unknown
ACTION: SERVICE_TICKET_VALIDATE_FAILED
APPLICATION: CAS
WHEN: Tue Aug 02 19:18:19 UTC 2016
CLIENT IP ADDRESS: 172.18.38.131
SERVER IP ADDRESS: 172.18.38.131
=============================================================