aws-dynamodb-session-tomcat icon indicating copy to clipboard operation
aws-dynamodb-session-tomcat copied to clipboard

Sticky Session Failover not working

Open prowave opened this issue 8 years ago • 5 comments

We opened a ticket with AWS support today and they asked us to open an issue here regarding the SessionManager with DynamoDB.

The AWS Engineer was able to reproduce this on his end as well.

We have an ElasticBeanstalk App running Java8, Tomcat8 and aws-dynamo-session-tomcat 2.0.0. We are using this DynamoDB Session Manager, configured as you have specified in the documentation referenced in this project's README.md file.

The symptom is that when the application scales down, or we perform a rolling deployment or restart across the Beanstalk cluster; when a node drops and the end user is directed to a different node, the session state is not available on the new node. This is what provides the Session Replication feature that allows cluster maintenance and scaling. The user gets a new HttpSession and has to login again.

Are you aware of this issue, and can you work with me to find a resolution?

Thank you.

prowave avatar Jul 12 '16 01:07 prowave

Can you share details about your configuration. Is your context marked as distributable with all attributes implementing serializable?

shorea avatar Aug 22 '16 17:08 shorea

I think I've identified an issue. Would you be willing to try out a beta jar?

Our keys implementation doesn't seem to adhere to the contract. It only keeps track of sessions that come through this node.

https://github.com/aws/aws-dynamodb-session-tomcat/blob/master/src/main/java/com/amazonaws/services/dynamodb/sessionmanager/DynamoDBSessionStore.java#L81

shorea avatar Aug 22 '16 18:08 shorea

I'll give the beta a try. Where can I download the beta jar?

carhensi avatar Aug 26 '16 06:08 carhensi

Can you try https://s3-us-west-2.amazonaws.com/dynamodb-tomcat-session-manager-beta/aws-dynamodb-session-tomcat-2.0.4.jar

shorea avatar Aug 30 '16 17:08 shorea

This project has been archived. Please see the README.md for more detail on alternative projects.

hyandell avatar Feb 06 '18 21:02 hyandell