Allow AbstractClientActor generation to start from non-zero 09/85509/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 Oct 2019 13:50:59 +0000 (15:50 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 3 Nov 2019 07:30:43 +0000 (08:30 +0100)
commit7475a1bc46ec02fdec0cc17503aca1eed8a0eda6
tree07c796f69c48b81ab9a4903243750e817a2f9e34
parent5237b71bddc6aa8dc7789147504f642b03071d97
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)
(cherry picked from commit 67afa21bc175d7a6ebd3df7607644d4c9326710e)
opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/RecoveringClientActorBehavior.java
opendaylight/md-sal/sal-cluster-admin-impl/src/main/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcService.java