[ 
https://issues.apache.org/jira/browse/QPID-7615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16928637#comment-16928637
 ] 

ASF GitHub Bot commented on QPID-7615:
--------------------------------------

alex-rufous commented on pull request #34: QPID-7615 Number of selectors can be 
equal to connection thread pool size
URL: https://github.com/apache/qpid-broker-j/pull/34#discussion_r323792710
 
 

 ##########
 File path: 
broker-core/src/test/java/org/apache/qpid/server/model/VirtualHostTest.java
 ##########
 @@ -509,31 +509,47 @@ public void testExistingConnectionBlocking()
     }
 
     @Test
-    public void testCreateValidation()
+    public void testSelectorNumberMustBePositiveOnCreate()
     {
+        createVirtualHost(getTestName(), 
Collections.singletonMap(QueueManagingVirtualHost.NUMBER_OF_SELECTORS, "1"));
 
 Review comment:
   It make sense to verify that attribute "numberOfSelectors" is indeed set to 
the specified value, for example
   
   `Map<String, Object> attributes = 
Collections.singletonMap(QueueManagingVirtualHost.NUMBER_OF_SELECTORS, "1");
   final QueueManagingVirtualHost<?> vh = createVirtualHost(getTestName(), 
attributes);
   assertEquals(1, vh.getNumberOfSelectors());`
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


> Cannot set number of selectors equal to pool size
> -------------------------------------------------
>
>                 Key: QPID-7615
>                 URL: https://issues.apache.org/jira/browse/QPID-7615
>             Project: Qpid
>          Issue Type: Bug
>          Components: Broker-J
>    Affects Versions: qpid-java-6.1.1
>            Reporter: James Howe
>            Priority: Minor
>
> For both Port and VirtualHost, the number of selectors is required to be 
> strictly less than the pool size.
> In particular, this means a pool size of 1 is not possible, as would be 
> desired for a minimal embedded/test configuration.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to