Reduce JSR305 proliferation retention=runtime annotations are mixing really badly with Java EE injection and Java 11. Make sure we do not use javax.annotation package in APIs and reduce overall proliferation inside implementations. Change-Id: I569815f0336efdc0de662c3b80f0fa6e5dd47d8a Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bug 7521: Convert DatastoreSnapshot.ShardSnapshot to store Snapshot Converted the new DatastoreSnapshot.ShardSnapshot class to store a Snapshot instance instead of a serialized byte[] so the Snapshot can be serialized directly to the file when saved. The prior DatastoreSnapshotList was deprecated and readResolves to the new DatastoreSnapshotList. Change-Id: I656eca93bfed07ae99055c67cc3f195b25ea2b11 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Fix FindBugs warnings in sal-akk-raft Fixed FindBugs warnings in sal-akk-raft and enabled the maven plugin to run and fail the build on violations. Some warnngs were suppressed with justification provided. Change-Id: I96b4bb58e6f5a6c3d3d14dadb9567df58ef5905f Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
Bug 4564: Implement GetSnapshot message in RaftActor Added a new client message, GetSnapshot, to return a serialized Snapshot instance. The implementation just captures the snapshot for return and does not persist it. If data persistence isn't enabled, it does not initiate a capture and returns a serialized Snapshot instance containing just the persistable state, eg election term info. Change-Id: I9ea7fc8e0e60c4d6874f5eb0188543e1d9b51243 Signed-off-by: Tom Pantelis <tpanteli@brocade.com>