Allow AbstractClientActor generation to start from non-zero 07/85507/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Oct 2019 13:50:59 +0000 (15:50 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Nov 2019 17:56:21 +0000 (18:56 +0100)
commit67afa21bc175d7a6ebd3df7607644d4c9326710e
treebef073243e3c3f52a1898c985339e4047f44730d
parente99739f7ee64c3281569a70d8795dea672979e3d
Allow AbstractClientActor generation to start from non-zero

This adds the ability to override the initial generation seeded
into persistence. The requested generation is controlled via
system properties on a per-client-type basis:

org.opendaylight.controller.cluster.access.client.initial.generation.datastore-operational = 500

This is useful during bringup of a zombie node, which lost all
of its persistence, for example during recovery from backup.

JIRA: CONTROLLER-1626
Change-Id: If32487fedcb5b6b39551a3359c069df940a6a725
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 2be60a19ed99fe7d33a24f7db8af3510f7ea835f)
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/RecoveringClientActorBehavior.java