Remove commons-lang dependencies Use commons-lang3 instead, as it provides better interface anyway. Change-Id: I8574166cf77f8f40c9a2ada4b06cc0d8b14244a9 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Switch to ARGON raft version We have new, more efficient serialization format. Switch to using it and deprecate old proxies. JIRA: CONTROLLER-2064 Change-Id: Ie549f08d62953ff6019ff915b12d0d4fedb1d3a0 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Add sal-akka-raft serialization assertions We need to be in control of serialized payload size. This patch adds the assertions on sizes. Change-Id: Ic73724d0acc51d7d7f28acb392fe569f719762c9 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Remove deprecated persisted raft payloads Removed the deprecated payload classes that were deprecated as Carbon will trigger a snapshot when it encounters any of them on recovery: ServerConfigurationPayload ApplyJournalEntries DeleteEntries UpdateElectionTerm ReplicatedLogImplEntry Also removed the implemented MigratedSerializable interface from the current classes. Change-Id: I942584022ece0783c73b2596e9ad928a28dfdda2 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Fix warnings in sal-akka-raft test classes Fixed checkstyle warnings in the test classes. Most of the warnings/changes were for: - white space before if/for/while/catch - white space before beginning brace - line too long - illegal catching of Exception (suppressed) - variable name too short - indentation - removed use of JavaTestKit with embedded code (avoids having to indent code another 4 spaces). In most cases, JavaTestKit wasn't even used. - local vars/params hiding a field - putting overloaded methods close to one another - remove unused vars - convert functional interfaces to lambdas (eclipse save action) - empty catch block - added comment or Throwables.propagate as appropriate - missing period after first sentence in javadoc - missing first sentence in javadoc - adding final for locals declared too far from first usage Change-Id: I5c522e5b0383b2c5e9b0b036dc444c51f788b650 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Take snapshot after recovery on migrated messages Modified RaftActorRecoverySupport to capture and persist a snapshot after recovery when there are migrated messages recovered. It utilizes the new MigratedSerializable interface. I also created equivalent classes in the persisted packages for UpdateElectionTerm, DeleteEntries and ApplyJournalEntries that implement MigratedSerializable and use the Externalizable proxy pattern. The existing classes were deprecated and readResolve to the new classes. Change-Id: Ia2e664de9ffd59991c49160424b13bc8ca0bfcbf Signed-off-by: Tom Pantelis <tpanteli@brocade.com>