spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <>
Subject [jira] [Commented] (SPARK-25766) AMCredentialRenewer can leak FS clients
Date Thu, 14 Feb 2019 21:52:00 GMT


Steve Loughran commented on SPARK-25766:

sounds good, though I should check. There's a FileSystem.closeAllForUGI() method which purges
all cached entries for a user and closes them; can be used.

That said, staring at that code its doing cleanup in a sync block, so it has its own issues,
especially if someone has been creating files for delete-on-exit. Created HADOOP-16111 to
remind me.

> AMCredentialRenewer can leak FS clients
> ---------------------------------------
>                 Key: SPARK-25766
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: YARN
>    Affects Versions: 2.4.0
>            Reporter: Steve Loughran
>            Priority: Trivial
> AMCredentialRenewer's scheduled {{writeNewCredentialsToHDFS}} operation creates a new
FS connector each time, so as to access the store with refreshed credentials
> but it doesn't close it after, so any resources used by the client are kept around. This
is more expensive with the cloud store connectors which create thread pools. 
> It should call {{remoteFs.close()}} at the end of its work.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message