Adding one field to session data caused errors across a trade portal, and rolling back made them worse
A Spring Boot trade portal running on eight pods stored user sessions in Redis using Java serialization. A release adding a preferred collection depot field to the session's customer context object triggered errors during a rolling rollout. Because the class lacked an explicit serialVersionUID, the new version produced an incompatible identifier, so pods running different versions could not read each other's sessions. Rolling back left thousands of sessions written by the new version unreadable to the old one, worsening the problem. The team fixed it by pinning the previous serialVersionUID with the JDK's serialver tool, then later moved sessions to JSON serialization with mandatory version checks and compatibility tests.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in