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

Siddharth Seth commented on TEZ-4156:
-------------------------------------

[~rajesh.balamohan] - where is this encountered? A connection should not be 
established very often.
Modifying the original UGI instance - would this lead to leaks across different 
AMs or clobbering of the AM token when multiple AMs are running? (maybe not 
clobbering if the 'service' field is the address of the AM)

> Fix Tez to reuse IPC connections
> --------------------------------
>
>                 Key: TEZ-4156
>                 URL: https://issues.apache.org/jira/browse/TEZ-4156
>             Project: Apache Tez
>          Issue Type: Improvement
>            Reporter: Rajesh Balamohan
>            Assignee: Rajesh Balamohan
>            Priority: Major
>         Attachments: TEZ-4156.1.patch
>
>
> When tracking DAG progress, TezClientUtils ends up creating new remote user. 
> Because of this new UGI creation, IPC connections are not reused internally.
> https://github.com/apache/tez/blob/master/tez-api/src/main/java/org/apache/tez/client/TezClientUtils.java#L965
> More info from Hadoop side:
> In hadoop's IPC layer, connectionIds are checked based on 
> UserGroupInformation.
> https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java#L1600
> However, UserGroupInformation comparison is based on ==
> https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java#L1789



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

Reply via email to