You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2019/06/14 20:54:33 UTC
[GitHub] [zookeeper] anmolnar commented on a change in pull request #912:
ZOOKEEPER-3365: Use Concurrent HashMap with Counter in NettyServerCnxnFactory
anmolnar commented on a change in pull request #912: ZOOKEEPER-3365: Use Concurrent HashMap with Counter in NettyServerCnxnFactory
URL: https://github.com/apache/zookeeper/pull/912#discussion_r293971031
##########
File path: zookeeper-server/src/test/java/org/apache/zookeeper/server/NettyServerCnxnTest.java
##########
@@ -110,6 +113,22 @@ public void testSendCloseSession() throws Exception {
}
}
+ /**
+ * In the {@link #setUp()} routine, the maximum number of connections per IP
+ * is set to 1. This tests that if more than one connection is attempted, the
+ * connection fails.
+ */
+ @Test(timeout = 40000, expected = ProtocolException.class)
+ public void testMaxConnectionPerIpSurpased() throws Exception {
+ Assert.assertTrue(
Review comment:
```java
assertThat(subClass, instanceOf(BaseClass.class));
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services