[SERVER-20071] Add range-checking to allocatePorts shell helper Created: 20/Aug/15  Updated: 28/Aug/15  Resolved: 28/Aug/15

Status: Closed
Project: Core Server
Component/s: Shell, Testing Infrastructure
Affects Version/s: 3.1.6
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Kamran K. Assignee: Kamran K.
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-18272 Update ShardingTest to use the alloca... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

allocatePorts(Infinity);

Participants:

 Description   

The allocatePorts helper allows you to specify a port number that exceeds 2^16 - 1. It's also possible for the function to hang if you specify a very large 'n' offset.

We should add range-checking for general correctness and to make jstestfuzz less likely to hang the shell.



 Comments   
Comment by Kamran K. [ 28/Aug/15 ]

Charlie is adding range checks as part of SERVER-18272.

Generated at Thu Feb 08 03:53:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.