[jira] [Commented] (GEODE-5337) Geode1.5 end-port is not exclusive when creating a gateway-receiver

2022-04-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/GEODE-5337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17522555#comment-17522555
 ] 

ASF subversion and git services commented on GEODE-5337:


Commit e19bf9480724afc676bf9c9052d5a4c20a9325e2 in geode's branch 
refs/heads/support/1.14 from Alberto Bustamante Reyes
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=e19bf94807 ]

GEODE-5337: End-port is not exclusive when creating a gw receiver (#6370)



> Geode1.5  end-port is not exclusive when creating a gateway-receiver
> 
>
> Key: GEODE-5337
> URL: https://issues.apache.org/jira/browse/GEODE-5337
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Cui Chenxiao
>Assignee: Alberto Bustamante Reyes
>Priority: Major
>  Labels: pull-request-available
> Fix For: 1.15.0
>
>
> When created,  a gateway-receiver shall be assign a range of port to  use.  
> In document 
> [http://geode.apache.org/docs/guide/16/tools_modules/gfsh/command-pages/create.html#topic_a4x_pb1_dk],
>  the description for --end-port says "The {{ENDPORT}} value is exclusive 
> while the {{STARTPORT}} value is inclusive. ".
>  
> However, sometimes, the port number of endport is also assigned to receiver 
> anyway. Besides, in code for gatewayreceiver, the endport will be randomly 
> assigned to receiver.
>  
> I supposed this shall be a document bug.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (GEODE-5337) Geode1.5 end-port is not exclusive when creating a gateway-receiver

2022-04-14 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/GEODE-5337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17522554#comment-17522554
 ] 

ASF subversion and git services commented on GEODE-5337:


Commit 89f41fd2e681fad1838d5c34b3191d022c712979 in geode's branch 
refs/heads/support/1.12 from Alberto Bustamante Reyes
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=89f41fd2e6 ]

GEODE-5337: End-port is not exclusive when creating a gw receiver (#6370)



> Geode1.5  end-port is not exclusive when creating a gateway-receiver
> 
>
> Key: GEODE-5337
> URL: https://issues.apache.org/jira/browse/GEODE-5337
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Cui Chenxiao
>Assignee: Alberto Bustamante Reyes
>Priority: Major
>  Labels: pull-request-available
> Fix For: 1.15.0
>
>
> When created,  a gateway-receiver shall be assign a range of port to  use.  
> In document 
> [http://geode.apache.org/docs/guide/16/tools_modules/gfsh/command-pages/create.html#topic_a4x_pb1_dk],
>  the description for --end-port says "The {{ENDPORT}} value is exclusive 
> while the {{STARTPORT}} value is inclusive. ".
>  
> However, sometimes, the port number of endport is also assigned to receiver 
> anyway. Besides, in code for gatewayreceiver, the endport will be randomly 
> assigned to receiver.
>  
> I supposed this shall be a document bug.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (GEODE-5337) Geode1.5 end-port is not exclusive when creating a gateway-receiver

2021-04-27 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/GEODE-5337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17333004#comment-17333004
 ] 

ASF subversion and git services commented on GEODE-5337:


Commit 9d577cfa1abd3936140077196c9dcec37d70d445 in geode's branch 
refs/heads/develop from Alberto Bustamante Reyes
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=9d577cf ]

GEODE-5337: End-port is not exclusive when creating a gw receiver (#6370)



> Geode1.5  end-port is not exclusive when creating a gateway-receiver
> 
>
> Key: GEODE-5337
> URL: https://issues.apache.org/jira/browse/GEODE-5337
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Cui Chenxiao
>Assignee: Alberto Bustamante Reyes
>Priority: Major
>  Labels: pull-request-available
>
> When created,  a gateway-receiver shall be assign a range of port to  use.  
> In document 
> [http://geode.apache.org/docs/guide/16/tools_modules/gfsh/command-pages/create.html#topic_a4x_pb1_dk],
>  the description for --end-port says "The {{ENDPORT}} value is exclusive 
> while the {{STARTPORT}} value is inclusive. ".
>  
> However, sometimes, the port number of endport is also assigned to receiver 
> anyway. Besides, in code for gatewayreceiver, the endport will be randomly 
> assigned to receiver.
>  
> I supposed this shall be a document bug.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (GEODE-5337) Geode1.5 end-port is not exclusive when creating a gateway-receiver

2018-06-22 Thread JIRA


[ 
https://issues.apache.org/jira/browse/GEODE-5337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16520201#comment-16520201
 ] 

Juan José Ramos Cassella commented on GEODE-5337:
-

This certainly seems to be a bug within the documentation.
The source code explicitly includes the {{endPort}} value as part of the 
possible options, and this algorithm hasn't changed since the very beginning:


{code:java}
public static int getRandomAvailablePortInRange(int rangeBase, int rangeTop, 
int protocol) {
int numberOfPorts = rangeTop - rangeBase;
// do "5 times the numberOfPorts" iterations to select a port number. This 
will ensure that
// each of the ports from given port range get a chance at least once
int numberOfRetrys = numberOfPorts * 5;
for (int i = 0; i < numberOfRetrys; i++) {
  int port = rand.nextInt(numberOfPorts + 1) + rangeBase;// add 1 to 
numberOfPorts so that
 // rangeTop also 
gets included
  if (isPortAvailable(port, protocol, getAddress(protocol))) {
return port;
  }
}
return -1;
}
{code}




> Geode1.5  end-port is not exclusive when creating a gateway-receiver
> 
>
> Key: GEODE-5337
> URL: https://issues.apache.org/jira/browse/GEODE-5337
> Project: Geode
>  Issue Type: Bug
>  Components: docs
>Reporter: Cui Chenxiao
>Priority: Major
> Fix For: 1.5.0
>
>
> When created,  a gateway-receiver shall be assign a range of port to  use.  
> In document 
> [http://geode.apache.org/docs/guide/16/tools_modules/gfsh/command-pages/create.html#topic_a4x_pb1_dk],
>  the description for --end-port says "The {{ENDPORT}} value is exclusive 
> while the {{STARTPORT}} value is inclusive. ".
>  
> However, sometimes, the port number of endport is also assigned to receiver 
> anyway. Beside, in code for gatewayreceiver, the endport will be randomly 
> assigned to receiver.
>  
> I supposed this shall be a document bug.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)