Skip to content

Conversation

@runzhiwang
Copy link
Contributor

@runzhiwang runzhiwang commented Jul 10, 2020

What changes were proposed in this pull request?

What's the problem ?
This PR is related to HDDS-3933.

When memory leak because of the reason explained in HDDS-3933, Datanode most time generates core.pid because it crash in Rocksdb when create new thread, as the image shows, but generates crash log rarely.
image

But because the default value of core file size is zero, so core.pid can not be generated. So when Datanode crash in Rocksdb, we can not get any information about why it crashed.

How to fix ?
Set ulimit -c unlimited to enable core dump when crash in RocksDB.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-3941

How was this patch tested?

Existed UT.

@ChenSammi
Copy link
Contributor

The patch looks good to me. + 1.

@ChenSammi ChenSammi merged commit c9f6365 into apache:master Jul 13, 2020
ChenSammi pushed a commit that referenced this pull request Jul 22, 2020
rakeshadr pushed a commit to rakeshadr/hadoop-ozone that referenced this pull request Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants