Remove maximum entry limitation on Raft log segments
Change-Id: Id0eb4127157b9f374bb7627c148791fc369901eb
(cherry picked from commit 5fba41c8e42503eed4b77889253508ef193d2b5a)
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);