Github user ykrips commented on a diff in the pull request:
https://github.com/apache/tajo/pull/412#discussion_r26304922
--- Diff: tajo-rpc/src/test/java/org/apache/tajo/rpc/TestAsyncRpc.java ---
@@ -125,8 +125,11 @@ public void setUpRpcServer() throws Exception {
public void setUpRpcClient() throws Exception {
retries = 1;
- client = new AsyncRpcClient(DummyProtocol.class,
- RpcUtils.getConnectAddress(server.getListenAddress()), retries);
+ RpcConnectionPool.RpcConnectionKey rpcConnectionKey =
+ new RpcConnectionPool.RpcConnectionKey(
+ RpcUtils.getConnectAddress(server.getListenAddress()),
+ DummyProtocol.class, true);
+ client = new AsyncRpcClient(rpcConnectionKey, retries);
--- End diff --
It needs to acquire connection on this code block, or it can be initialized
later on each test functions.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---