Github user jinossy commented on a diff in the pull request:
https://github.com/apache/tajo/pull/556#discussion_r29343681
--- Diff:
tajo-client/src/main/java/org/apache/tajo/client/SessionConnection.java ---
@@ -95,20 +96,29 @@ public SessionConnection(ServiceTracker tracker,
@Nullable String baseDatabase,
this.baseDatabase = baseDatabase != null ? baseDatabase : null;
this.serviceTracker = tracker;
+ try {
+ this.client = getTajoMasterConnection();
+ } catch (Exception e) {
+ throw new IOException(e);
+ }
}
public Map<String, String> getClientSideSessionVars() {
return Collections.unmodifiableMap(sessionVarsCache);
}
- public NettyClientBase getTajoMasterConnection(boolean asyncMode) throws
NoSuchMethodException,
- ConnectException, ClassNotFoundException {
- return manager.getClient(getTajoMasterAddr(),
TajoMasterClientProtocol.class, asyncMode);
- }
+ public synchronized NettyClientBase getTajoMasterConnection() throws
ServiceException {
--- End diff --
Nice finding!
The client is created in constructor.
---
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.
---