Reverting changes used for release testing
Change-Id: I6fb40c573c42d2840e10bad47d54bafe25e4eb0a
diff --git a/api/src/main/java/org/opencord/igmpproxy/IgmpStatistics.java b/api/src/main/java/org/opencord/igmpproxy/IgmpStatistics.java
index 37123e7..5617017 100644
--- a/api/src/main/java/org/opencord/igmpproxy/IgmpStatistics.java
+++ b/api/src/main/java/org/opencord/igmpproxy/IgmpStatistics.java
@@ -74,7 +74,7 @@
//Total number of group specific IGMP membership query messages received
private AtomicLong igmpGrpSpecificMembershipQuery = new AtomicLong();
//Total number of group and source specific IGMP membership query messages received
- private AtomicLong igmpGrpAndSrcSpecificMembershipQuery = new AtomicLong(100);
+ private AtomicLong igmpGrpAndSrcSpecificMembershipQuery = new AtomicLong();
public void setStats(IgmpStatistics current) {
igmpJoinReq.set(current.igmpJoinReq.get());
diff --git a/app/src/main/java/org/opencord/igmpproxy/impl/IgmpStatisticsManager.java b/app/src/main/java/org/opencord/igmpproxy/impl/IgmpStatisticsManager.java
index a9f124e..7d0f98e 100644
--- a/app/src/main/java/org/opencord/igmpproxy/impl/IgmpStatisticsManager.java
+++ b/app/src/main/java/org/opencord/igmpproxy/impl/IgmpStatisticsManager.java
@@ -116,7 +116,6 @@
public void activate(ComponentContext context) {
igmpStats = getIgmpStatsInstance();
- log.info("Creating Distributed Statistics Map {}", IGMP_STATISTICS);
statistics = storageService.<NodeId, IgmpStatistics>eventuallyConsistentMapBuilder()
.withName(IGMP_STATISTICS)
.withSerializer(statSerializer)
diff --git a/app/src/test/java/org/opencord/igmpproxy/impl/IgmpStatisticsTest.java b/app/src/test/java/org/opencord/igmpproxy/impl/IgmpStatisticsTest.java
index 2fd6275..3c9f5aa 100644
--- a/app/src/test/java/org/opencord/igmpproxy/impl/IgmpStatisticsTest.java
+++ b/app/src/test/java/org/opencord/igmpproxy/impl/IgmpStatisticsTest.java
@@ -173,7 +173,7 @@
sendPacket(igmpv3MembershipQueryPkt1);
assertAfter(WAIT_TIMEOUT, WAIT_TIMEOUT * 2, () ->
assertEquals(igmpStatisticsManager
- .getStat(IgmpStatisticType.IGMP_GRP_AND_SRC_SPESIFIC_MEMBERSHIP_QUERY).longValue(), 101));
+ .getStat(IgmpStatisticType.IGMP_GRP_AND_SRC_SPESIFIC_MEMBERSHIP_QUERY).longValue(), 1));
assertEquals(igmpStatisticsManager
.getStat(IgmpStatisticType.IGMP_GENERAL_MEMBERSHIP_QUERY).longValue(), 1);
assertEquals(igmpStatisticsManager.getStat(IgmpStatisticType.CURRENT_GRP_NUMBER_COUNTER).longValue(), 1);