{"action":"created","issue":{"url":"https://api.github.com/repos/magro/memcached-session-manager/issues/283","repository_url":"https://api.github.com/repos/magro/memcached-session-manager","labels_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/283/comments","events_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/283/events","html_url":"https://github.com/magro/memcached-session-manager/issues/283","id":125829012,"number":283,"title":"Session attributes are getting lost sometime in concurrent request i guess #i added lockingmode to All but it does not seems hellping at all","user":{"login":"erLovepreet","id":16635488,"avatar_url":"https://avatars.githubusercontent.com/u/16635488?v=3","gravatar_id":"","url":"https://api.github.com/users/erLovepreet","html_url":"https://github.com/erLovepreet","followers_url":"https://api.github.com/users/erLovepreet/followers","following_url":"https://api.github.com/users/erLovepreet/following{/other_user}","gists_url":"https://api.github.com/users/erLovepreet/gists{/gist_id}","starred_url":"https://api.github.com/users/erLovepreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erLovepreet/subscriptions","organizations_url":"https://api.github.com/users/erLovepreet/orgs","repos_url":"https://api.github.com/users/erLovepreet/repos","events_url":"https://api.github.com/users/erLovepreet/events{/privacy}","received_events_url":"https://api.github.com/users/erLovepreet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magro/memcached-session-manager/labels/needs-feedback","name":"needs-feedback","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2016-01-10T16:21:28Z","updated_at":"2016-03-25T00:00:53Z","closed_at":null,"body":"here are my memcached configuration \r\n\r\n<Manager className=\"de.javakaffee.web.msm.MemcachedBackupSessionManager\"\r\n\t    sticky=\"false\"\r\n\t    memcachedNodes=\"localhost:11211\"\r\n\t    failoverNodes=\"\"\r\n\t    requestUriIgnorePattern=\".*\\.(png|gif|jpg|css|js|ico)$\"\r\n\t    sessionBackupAsync=\"false\"\r\n\t    lockingMode=\"all\"\r\n            transcoderFactoryClass=\"de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory\"            \r\n    />\r\n\r\n\r\nFINE: Starting for session id 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:29 PM de.javakaffee.web.msm.BackupSessionTask doBackupSession\r\n\r\n\r\nFINE: Trying to store session in memcached: 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\n\r\n\r\nJan 09, 2016 11:10:29 PM de.javakaffee.web.msm.BackupSessionTask call\r\nFINE: Finished for session id 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81, returning status SUCCESS\r\nJan 09, 2016 11:10:29 PM de.javakaffee.web.msm.LockingStrategy onAfterBackupSession\r\nFINE: Stored session validity info for session 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:29 PM de.javakaffee.web.msm.RequestTrackingHostValve logDebugRequestSessionCookie\r\nFINE: Have request session cookie: domain=null, maxAge=-1, path=null, value=D4B1CE0FFDF440D7374D0A3A3F365BBB.tomcat81, version=0, secure=false\r\nJan 09, 2016 11:10:29 PM de.javakaffee.web.msm.RequestTrackingHostValve logDebugResponseCookie\r\nFINE: Request finished, with Set-Cookie header: JSESSIONID=7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81; Path=/contextpath/; HttpOnly\r\nJan 09, 2016 11:10:29 PM de.javakaffee.web.msm.RequestTrackingHostValve invoke\r\nFINE: <<<<<< Request finished: POST /previousRequest ==================\r\n\r\n//here i am trying to set some attribute.\r\n--------------------------------------------setsession------------------------isLoggedIn\r\n\r\n\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.MemcachedSessionService backupSession\r\nFINE: No session found in session map for 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.LockingStrategy onBackupWithoutLoadedSession\r\nFINE: Stored session validity info for session 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.RequestTrackingHostValve logDebugRequestSessionCookie\r\nFINE: Have request session cookie: domain=null, maxAge=-1, path=null, value=7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81, version=0, secure=false\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.RequestTrackingHostValve invoke\r\n\r\nFINE: <<<<<< Request finished: POST /someRequest ==================\r\n//request which sets the attribute is over\r\n\r\n\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.LockingStrategy pingSession\r\nFINE: The session was ping'ed successfully.\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.RequestTrackingHostValve invoke\r\n\r\n//someother request\r\nFINE: >>>>>> Request starting: GET /someother request (requestedSessionId 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81) ==================\r\n\r\n\r\n\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.MemcachedSessionService loadFromMemcached\r\nFINE: Loading session from memcached: 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.MemcachedSessionService loadFromMemcached\r\nFINE: Found session with id 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\n\r\n--------------------------getting attribute from same session but getting null\r\n\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.BackupSessionService backupSession\r\n\r\n\r\n//now it is trying to update the session in memcahed but session is alredy dirty read by previous request\r\n\r\n\r\nFINE: Starting for session id 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.BackupSessionTask call\r\nFINE: Starting for session id 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.BackupSessionTask call\r\nFINE: Finished for session id 7ECDF6FB9A2DF19ECD4B0C7BFA98D9AF.tomcat81, returning status SKIPPED\r\nJan 09, 2016 11:10:30 PM de.javakaffee.web.msm.LockingStrategy onAfterBackupSession\r\n\r\n\r\n\r\n\r\n\r\ni have tried it with locking mode also but problem is still exists \r\nAccording to me the problem is thread which is calling BackupSessionTask for backup , it is taking time to update the session in memcached mean while other request do dirty read \r\nif my guess was right you should have wait for thread before assigning session from memcached to other request\r\n\r\n\r\n\r\n\r\nif i am missing some configuration please let me know \r\nThanks in advance"},"comment":{"url":"https://api.github.com/repos/magro/memcached-session-manager/issues/comments/201078340","html_url":"https://github.com/magro/memcached-session-manager/issues/283#issuecomment-201078340","issue_url":"https://api.github.com/repos/magro/memcached-session-manager/issues/283","id":201078340,"user":{"login":"magro","id":64285,"avatar_url":"https://avatars.githubusercontent.com/u/64285?v=3","gravatar_id":"","url":"https://api.github.com/users/magro","html_url":"https://github.com/magro","followers_url":"https://api.github.com/users/magro/followers","following_url":"https://api.github.com/users/magro/following{/other_user}","gists_url":"https://api.github.com/users/magro/gists{/gist_id}","starred_url":"https://api.github.com/users/magro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magro/subscriptions","organizations_url":"https://api.github.com/users/magro/orgs","repos_url":"https://api.github.com/users/magro/repos","events_url":"https://api.github.com/users/magro/events{/privacy}","received_events_url":"https://api.github.com/users/magro/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T00:00:53Z","updated_at":"2016-03-25T00:00:53Z","body":"Re 4: see https://github.com/magro/memcached-session-manager/wiki/SetupAndConfiguration#configure-logging"}}