BUG 1853 : Clustered Data Store causes Out of Memory 40/11140/2
authorMoiz Raja <moraja@cisco.com>
Sat, 13 Sep 2014 18:47:44 +0000 (11:47 -0700)
committerMoiz Raja <moraja@cisco.com>
Sun, 14 Sep 2014 15:07:44 +0000 (08:07 -0700)
commitca1c2c54a6bd4a74c0c56480c5f11d86509fb17b
treee6e73a0f143de0abea6b80d7c59a9c422945c11b
parenta4732c5709ada6e86cd99ce21106b94c1ce324f8
BUG 1853 : Clustered Data Store causes Out of Memory

createSnapshotTransaction was not being set to null which caused
snapshots from being created in the future and thus did not compact
the memory ultimately leading to the JVM running out of memory

Switched to using an InMemorySnapshotstore for test to avoid having
to deal with the file system and adding unneccessary sleeps

Change-Id: I0cb4b219a09a9bc736bd47533888999ee543a4e5
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/DefaultConfigParamsImpl.java
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractActorTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/utils/InMemorySnapshotStore.java [new file with mode: 0644]
opendaylight/md-sal/sal-distributed-datastore/src/test/resources/application.conf