[CONTROLLER-1301] Clustering: Serialization failures when upgrading from a Helium journal Created: 08/May/15  Updated: 12/May/15  Resolved: 12/May/15

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: Post-Helium
Fix Version/s: None

Type: Bug
Reporter: Tom Pantelis Assignee: Tom Pantelis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3161
Priority: Highest

 Description   

I tried to load a journal from a Helium SR2 install into a Lithium install to simulate an upgrade. It failed with serialized version mismatch errors for the UpdateElectionTerm and DeleteEntries classes.

Earlier in Li the static serialVersionUID field was aded to these classes (set to 1). We can't do this as it breaks backwards compatibility.

The DeleteEntries inner class in RaftActor was actually deprecated in favor of a new class in the messages package. We should do the same for the UpdateElectionTerm inner class. We can remove the deprecated inner classes in a later release.



 Comments   
Comment by Tom Pantelis [ 09/May/15 ]

Submitted https://git.opendaylight.org/gerrit/#/c/19967/ to remove serialVersionUID.

Comment by Tom Pantelis [ 09/May/15 ]

Submitted https://git.opendaylight.org/gerrit/#/c/19969/ to deprecate the UpdateElectionTerm inner class and create a new stand-alone UpdateElectionTerm class with serialVersionUID set.

Generated at Wed Feb 07 19:55:11 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.