commit | 5fba41c8e42503eed4b77889253508ef193d2b5a | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Thu Sep 14 13:33:21 2017 -0700 |
committer | Thomas Vachuska <tom@opennetworking.org> | Fri Sep 15 15:15:30 2017 +0000 |
tree | 5254cb8c5c40df851b2861c8186bda240e4a9f2d | |
parent | ff9af3e5ebcf48f8aa454c0d0f49c8f5677387db [diff] |
Remove maximum entry limitation on Raft log segments Change-Id: Id0eb4127157b9f374bb7627c148791fc369901eb
diff --git a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java index 36b854f..bb071a2 100644 --- a/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java +++ b/core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/StoragePartitionServer.java
@@ -40,7 +40,6 @@ private final Logger log = getLogger(getClass()); - private static final int MAX_ENTRIES_PER_LOG_SEGMENT = 32768; private static final int MAX_SEGMENT_SIZE = 1024 * 1024 * 64; private static final long ELECTION_TIMEOUT_MILLIS = 2500; private static final long HEARTBEAT_INTERVAL_MILLIS = 1000; @@ -108,7 +107,6 @@ .withStorageLevel(StorageLevel.MAPPED) .withSerializer(new AtomixSerializerAdapter(Serializer.using(StorageNamespaces.RAFT_STORAGE))) .withDirectory(dataFolder) - .withMaxEntriesPerSegment(MAX_ENTRIES_PER_LOG_SEGMENT) .withMaxSegmentSize(MAX_SEGMENT_SIZE) .build()); StoragePartition.RAFT_SERVICES.forEach(builder::addService);