Dummy Distributed Data Store for testing replication 05/14805/3
authorMoiz Raja <moraja@cisco.com>
Sat, 24 Jan 2015 13:58:35 +0000 (05:58 -0800)
committerMoiz Raja <moraja@cisco.com>
Wed, 4 Feb 2015 17:56:48 +0000 (09:56 -0800)
commitfc8b317d4a10ccada8b09d25bc444d88d3e15a30
tree5e01a8ad5d3f00309df45f19f5590a7c3436179a
parent608c2722054a167e2e6817fa2901876228f7685f
Dummy Distributed Data Store for testing replication

To use this run a real instance of the controller on your laptop.
Modify the module-shards.conf to replicate modules to member-2 or
member-2 and member-3 as neccessary.

Then run the dummy datastore.

For example,

   java -jar ./target/sal-dummy-distributed-datastore-1.2.0-SNAPSHOT-allinone.jar -member-name member-2 -cause-trouble -drop-replies -max-delay-millis 500

Runs the dummy datastore as member-2. Will cause failures including dropped replies and when it does reply may cause a random delay of upto
500 millis

This will start of the dummy datastore which will then spawn dummy shard actors which will listen to the RequestVote
and AppendEntries messages. For RequestVote messages it will always respond with a positive vote and for AppendEntries
it will put a sleep for a randomized interval upto the max delay.

Change-Id: Ib618365f12bcc714fcf45e29051f8796f798a361
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/pom.xml
opendaylight/md-sal/sal-dummy-distributed-datastore/README [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/pom.xml [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/Configuration.java [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/DummyShard.java [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/DummyShardManager.java [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/java/org/opendaylight/controller/dummy/datastore/Main.java [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/resources/member-2.conf [new file with mode: 0644]
opendaylight/md-sal/sal-dummy-distributed-datastore/src/main/resources/member-3.conf [new file with mode: 0644]