Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug-1829:Commit index of follower not changed after Snapshot applied on recovery.
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
test
/
resources
/
application.conf
diff --git
a/opendaylight/md-sal/sal-akka-raft/src/test/resources/application.conf
b/opendaylight/md-sal/sal-akka-raft/src/test/resources/application.conf
index 2647850667e6f7f779d582b33267c1afcbc6d483..6b2cc2203844198bc546ab509695d3c134a35a8b 100644
(file)
--- a/
opendaylight/md-sal/sal-akka-raft/src/test/resources/application.conf
+++ b/
opendaylight/md-sal/sal-akka-raft/src/test/resources/application.conf
@@
-1,11
+1,30
@@
akka {
akka {
+ persistence.snapshot-store.plugin = "mock-snapshot-store"
+
+ loglevel = "DEBUG"
+ loggers = ["akka.testkit.TestEventListener", "akka.event.slf4j.Slf4jLogger"]
+
actor {
actor {
+ # enable to test serialization only.
+ serialize-messages = on
+
serializers {
serializers {
- java = "akka.serialization.JavaSerializer"
+ java = "akka.serialization.JavaSerializer"
+ proto = "akka.remote.serialization.ProtobufSerializer"
}
serialization-bindings {
}
serialization-bindings {
- "org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification" = java
+ "org.opendaylight.controller.cluster.raft.client.messages.FindLeader" = java
+ "org.opendaylight.controller.cluster.raft.ReplicatedLogImplEntry" = java
+ "com.google.protobuf.Message" = proto
+ "com.google.protobuf.GeneratedMessage" = proto
}
}
}
}
-}
\ No newline at end of file
+}
+
+mock-snapshot-store {
+ # Class name of the plugin.
+ class = "org.opendaylight.controller.cluster.raft.utils.MockSnapshotStore"
+ # Dispatcher for the plugin actor.
+ plugin-dispatcher = "akka.persistence.dispatchers.default-plugin-dispatcher"
+}