HBASE-17703 Added random infoport to TestThriftServerCmdLine

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Jan Hentschel 2017-03-03 20:03:02 +01:00 committed by tedyu
parent 678ad0ea73
commit d3bf246421
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ public class TestThriftServerCmdLine {
port = HBaseTestingUtility.randomFreePort();
args.add("-" + ThriftServer.PORT_OPTION);
args.add(String.valueOf(port));
args.add("-infoport");
int infoPort = HBaseTestingUtility.randomFreePort();
args.add(String.valueOf(infoPort));
if (specifyFramed) {
args.add("-" + ThriftServer.FRAMED_OPTION);
}