Skip to content

Memory leak while submitting Spark apps using Ozone #7320

Answered by adoroszlai
aekom87 asked this question in FAQ
Discussion options

You must be logged in to vote

Thanks @aekom87 for the details, very helpful.

  • org.apache.hadoop.fs.ozone.RootedOzFs internally creates new RootedOzoneFileSystem()
  • as it looks to me now, this RootedOzoneFileSystem is never closed and it may cause the leak

You are right. RootedOzFs is leaking this internal RootedOzoneFileSystem instance.

By contrast, S3A closes its own internal instance in finalize():

  /**
   * Close the file system; the FileContext API doesn't have an explicit close.
   */
  @Override
  protected void finalize() throws Throwable {
    fsImpl.close();
    super.finalize();
  }

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
2 replies
@aekom87
Comment options

@ivandika3
Comment options

Comment options

You must be logged in to vote
8 replies
@aekom87
Comment options

@aekom87
Comment options

@sadanand48
Comment options

@adoroszlai
Comment options

Answer selected by ivandika3
@sadanand48
Comment options

@aekom87
Comment options

@adoroszlai
Comment options

@adoroszlai
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@aekom87
Comment options

@adoroszlai
Comment options

@aekom87
Comment options

Comment options

You must be logged in to vote
1 reply
@ivandika3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
5 participants