Log Message: |
HIVE-2959 [jira] TestRemoteHiveMetaStoreIpAddress always uses the same port
(Kevin Wilfong via Ashutosh Chauhan)
Summary:
https://issues.apache.org/jira/browse/HIVE-2959
TestRemoteHiveMetaStoreIpAddress now uses the standard way of finding a free
port using Java's ServerSocket class.
TestRemoteHiveMetaStoreIpAddress always uses the same port, meaning that if
another process happens to be using that port, the tests cannot succeed.
There seems to be a standard way of finding a free port using Java's
ServerSocket class, this should be used instead.
Test Plan: Ran TestRemoteHiveMetaStoreIpAddress and
TestRemoteUGIHiveMetaStoreIpAddress, the two tests which would be affected by
this change. I verified they passed and did not use port 39083.
Reviewers: JIRA, njain, ashutoshc
Reviewed By: ashutoshc
Differential Revision: https://reviews.facebook.net/D2841
|