HBASE-17703 Added random infoport to TestThriftServerCmdLine
Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
parent
678ad0ea73
commit
d3bf246421
|
@ -160,6 +160,10 @@ public class TestThriftServerCmdLine {
|
||||||
port = HBaseTestingUtility.randomFreePort();
|
port = HBaseTestingUtility.randomFreePort();
|
||||||
args.add("-" + ThriftServer.PORT_OPTION);
|
args.add("-" + ThriftServer.PORT_OPTION);
|
||||||
args.add(String.valueOf(port));
|
args.add(String.valueOf(port));
|
||||||
|
args.add("-infoport");
|
||||||
|
int infoPort = HBaseTestingUtility.randomFreePort();
|
||||||
|
args.add(String.valueOf(infoPort));
|
||||||
|
|
||||||
if (specifyFramed) {
|
if (specifyFramed) {
|
||||||
args.add("-" + ThriftServer.FRAMED_OPTION);
|
args.add("-" + ThriftServer.FRAMED_OPTION);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue