You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/07/10 04:52:05 UTC

[GitHub] [hadoop-ozone] runzhiwang opened a new pull request #1186: HDDS-3941. Enable core dump when crash in C++

runzhiwang opened a new pull request #1186:
URL: https://github.com/apache/hadoop-ozone/pull/1186


   ## What changes were proposed in this pull request?
   
   **What's the problem ?**
   This PR is related to HDDS-3933. Fix memory leak because of too many Datanode State Machine Thread.
   When memory leak, Datanode most time generates core.pid because it crash in Rocksdb when create new thread, as the image shows, and generates crash log rarely.
   ![image](https://user-images.githubusercontent.com/51938049/87117625-97c9c380-c2ab-11ea-96e2-58c197cb6275.png)
   
   But because the default value of `core file size` if 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.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [hadoop-ozone] ChenSammi commented on pull request #1186: HDDS-3941. Enable core dump when crash in C++

Posted by GitBox <gi...@apache.org>.
ChenSammi commented on pull request #1186:
URL: https://github.com/apache/hadoop-ozone/pull/1186#issuecomment-657388589


   The patch looks good to me. + 1. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [hadoop-ozone] ChenSammi merged pull request #1186: HDDS-3941. Enable core dump when crash in C++

Posted by GitBox <gi...@apache.org>.
ChenSammi merged pull request #1186:
URL: https://github.com/apache/hadoop-ozone/pull/1186


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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