You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Giovanni Matteo Fumarola (Jira)" <ji...@apache.org> on 2020/05/01 17:47:00 UTC

[jira] [Commented] (YARN-6526) Refactoring SQLFederationStateStore by avoiding to recreate a connection at every call

    [ https://issues.apache.org/jira/browse/YARN-6526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097545#comment-17097545 ] 

Giovanni Matteo Fumarola commented on YARN-6526:
------------------------------------------------

Currently the code get a connection from HikariPool and close the connections at the end of the query.
{code:java}
conn = getConnection();
cstmt = conn.prepareCall(CALL_SP_REGISTER_SUBCLUSTER);
--------------------
FederationStateStoreUtils.returnToPool(LOG, cstmt, conn);{code}
I would like to see if we can remove the cstmt creation and deletion. I don't know if it is possible or not.
If not, we can close the jira.

 

> Refactoring SQLFederationStateStore by avoiding to recreate a connection at every call
> --------------------------------------------------------------------------------------
>
>                 Key: YARN-6526
>                 URL: https://issues.apache.org/jira/browse/YARN-6526
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: federation
>            Reporter: Giovanni Matteo Fumarola
>            Assignee: Bilwa S T
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org