On 11/28/2012 09:33 PM, Marcos NiLs wrote:
> Hi Guys,
>
> I was having the same problem using memcached-session-manager and
> spymemcached. What I did is to change Spymemcached FailureMode from the
> default one (redistribute) to "retry". That will make spymemcached to
> retry the operation rather than abort it and throw the error you're seing.
Basically redistribute doesn't make sense at all. I'm suprised that this
is the default, maybe it changed in some version.
> I had to manually make the change as msm does not support setting
> spymemcached FailureMode. Maybe this would be a nice feature for the future.
Wouldn't it be sufficient just to hardcode "retry", or do you think
"cancel" would be useful in some cases?
Can you please submit an issue for this?
Thanx && cheers,
Martin
>
> Hope mi answer helps.
>
> Marcos!.
>
> El martes, 14 de agosto de 2012 02:49:20 UTC-3, Martin Grotzke escribió:
>
> That's all done by spymemcached, msm only sets the timeout for a
> request.
>
> Cheers,
> Martin
>
> usingspymemcached-2.7.3,memcached-__s__ession-manager-tc7-1.6.2,
> memcached-session-manager-1.6.____2
>
> My configuration is below;
> <Manager
> className="de.javakaffee.web.__m__sm.__MemcachedBackupSessionManag__er"__
>
> memcachedNodes="localhost:__1121__1"
>
> requestUriIgnorePattern=".*\.(____png|gif|jpg|css|js)$"
>
> sticky="false"
> sessionBackupAsync="false"
> sessionBackupTimeout="10000"
> operationTimeout="10000"
> enableStatistics="false"
> />
> Then it will get below exception. All I know is
> the connection to memecached server will lost
> every 20 minutes, and seems the exception
> happens after connection dropped.
> I want to know if I can do some configuration to
> avoid this error.
>
> Aug 10, 2012 4:22:23 AM
> de.javakaffee.web.msm.__LockingS__trategy
> onBackupWithoutLoadedSession
> WARNING: An error when trying to load/update
> validity info.
> java.lang.RuntimeException: Exception waiting
> for value
> at
> net.spy.memcached.__MemcachedCli__ent.get(__MemcachedClient.java:__1183)
> at
> net.spy.memcached.__MemcachedCli__ent.get(__MemcachedClient.java:__1200)
> at
> de.javakaffee.web.msm.__LockingS__trategy.__loadSessionValidityInf__oForVali__dityKey(__LockingStrategy.java:__337)
> at
> de.javakaffee.web.msm.__LockingS__trategy.__onBackupWithoutLoadedS__ession(__LockingStrategy.java:__228)
> at
> de.javakaffee.web.msm.__Memcache__dSessionService.__backupSession(____MemcachedSessionService.java:__1__031)
> at
> de.javakaffee.web.msm.__RequestT__rackingHostValve.__backupSession__(__RequestTrackingHostValve.__java:__229)
> at
> de.javakaffee.web.msm.__RequestT__rackingHostValve.__invoke(__Reques__tTrackingHostValve.java:__154)
> at
> de.javakaffee.web.msm.__RequestT__rackingHostValve.__invoke(__Reques__tTrackingHostValve.java:__151)
> at
> org.apache.catalina.valves.__Err__orReportValve.invoke(__ErrorRepo__rtValve.java:100)
> at
> org.apache.catalina.valves.__Acc__essLogValve.invoke(__AccessLogVa__lve.java:563)
> at
> org.apache.catalina.core.__Stand__ardEngineValve.invoke(__Standard__EngineValve.java:118)
> at
> org.apache.catalina.connector.____CoyoteAdapter.service(__CoyoteAd__apter.java:399)
> at
> org.apache.coyote.http11.__Http1__1Processor.process(__Http11Proce__ssor.java:317)
> at
> org.apache.coyote.http11.__Http1__1Protocol$__Http11ConnectionHand__ler.__process(Http11Protocol.__java:__204)
> at
> org.apache.coyote.http11.__Http1__1Protocol$__Http11ConnectionHand__ler.__process(Http11Protocol.__java:__182)
> at
org.apache.tomcat.util.net
> <
http://org.apache.tomcat.util.net>.__JIo__Endpoint$SocketProcessor.__run(__JIoEndpoint.java:311)
> at
> java.util.concurrent.__ThreadPoo__lExecutor$Worker.__runTask(__ThreadPoolExecutor.__java:886)
> at
> java.util.concurrent.__ThreadPoo__lExecutor$Worker.run(__ThreadPoo__lExecutor.java:908)
> at java.lang.Thread.run(Thread.__ja__va:619)
> Caused by:
> java.util.concurrent.__Execution__Exception:
> java.lang.RuntimeException: Cancelled
> at
> net.spy.memcached.internal.__Ope__rationFuture.get(__OperationFutu__re.java:84)
> at
> net.spy.memcached.internal.__Get__Future.get(GetFuture.java:__38)
> at
> net.spy.memcached.__MemcachedCli__ent.get(__MemcachedClient.java:__1178)
> ... 18 more
> Caused by: java.lang.RuntimeException: Cancelled
> ... 21 more
>
--
inoio gmbh -
http://inoio.de
Breitenfelder Str. 13c, 20251 Hamburg
Amtsgericht Hamburg, HRB 123031
Geschäftsführer: Dennis Brakhane, Martin Grotzke, Ole Langbehn