Alexey Serbin has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/19337 )

Change subject: [util] introduce WaitFor{Tcp,Udp}BindAtPort()
......................................................................

[util] introduce WaitFor{Tcp,Udp}BindAtPort()

This patch introduces a new utility functions to be used in tests:
  * WaitForTcpBindAtPort()
  * WaitForUdpBindAtPort()

They are similar to already existing WaitFor{Tcp,Udp}Bind(), but have
semantics of waiting while some process binds to the specified port.
The difference that in these new cases the port number is known
beforehand, and it doesn't matter which process binds to the port.

This functionality will be used in a follow-up patch.

Change-Id: Ia466bf20040b35359d95fd66971e4af668d081e7
Reviewed-on: http://gerrit.cloudera.org:8080/19337
Tested-by: Alexey Serbin <[email protected]>
Reviewed-by: Yifan Zhang <[email protected]>
---
M src/kudu/util/test_util.cc
M src/kudu/util/test_util.h
2 files changed, 90 insertions(+), 2 deletions(-)

Approvals:
  Alexey Serbin: Verified
  Yifan Zhang: Looks good to me, approved

--
To view, visit http://gerrit.cloudera.org:8080/19337
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia466bf20040b35359d95fd66971e4af668d081e7
Gerrit-Change-Number: 19337
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Yifan Zhang <[email protected]>
Gerrit-Reviewer: Yingchun Lai <[email protected]>

Reply via email to