This is an automated email from the ASF dual-hosted git repository. upthewaterspout pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode.git
commit b16f984a7e94bdd02c511d1fb54ac132e726cce5 Author: Dan Smith <[email protected]> AuthorDate: Wed Dec 13 14:41:49 2017 -0800 GEODE-4093: new protocol needs to work on an embedded locator With an embedded locator, the new protocol was throwing an NPE in the locator. --- .../protocol/protobuf/statistics/ProtobufClientStatisticsImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geode-protobuf/src/main/java/org/apache/geode/internal/protocol/protobuf/statistics/ProtobufClientStatisticsImpl.java b/geode-protobuf/src/main/java/org/apache/geode/internal/protocol/protobuf/statistics/ProtobufClientStatisticsImpl.java index 4868966..7b40c88 100644 --- a/geode-protobuf/src/main/java/org/apache/geode/internal/protocol/protobuf/statistics/ProtobufClientStatisticsImpl.java +++ b/geode-protobuf/src/main/java/org/apache/geode/internal/protocol/protobuf/statistics/ProtobufClientStatisticsImpl.java @@ -18,6 +18,8 @@ import org.apache.geode.StatisticDescriptor; import org.apache.geode.Statistics; import org.apache.geode.StatisticsFactory; import org.apache.geode.StatisticsType; +import org.apache.geode.distributed.DistributedSystem; +import org.apache.geode.distributed.internal.InternalDistributedSystem; import org.apache.geode.internal.protocol.statistics.ProtocolClientStatistics; public class ProtobufClientStatisticsImpl implements ProtocolClientStatistics { @@ -35,6 +37,9 @@ public class ProtobufClientStatisticsImpl implements ProtocolClientStatistics { private final int authenticationFailuresId; public ProtobufClientStatisticsImpl(StatisticsFactory statisticsFactory, String statisticsName) { + if (statisticsFactory == null) { + statisticsFactory = InternalDistributedSystem.getAnyInstance(); + } StatisticDescriptor[] serverStatDescriptors = new StatisticDescriptor[] { statisticsFactory.createIntGauge("currentClientConnections", "Number of sockets accepted and used for client to server messaging.", "sockets"), -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
