[ https://issues.apache.org/jira/browse/HDFS-7017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197308#comment-14197308 ]
Zhanwei Wang commented on HDFS-7017: ------------------------------------ Unfortunately we are the 0.0001% users who disable memory overcommit. And we also observed the std::bad_alloc in our stress test. So it is important to not let the library die in this case and give the application opportunity to handle it. For instance the C API of libhdfs3 return an error flag and set errno to ENOMEM and the application will abort the query to free the memory. You are right about that we should write some log instead of exit the lease renewer thread quietly. Adding another try ... catch block is a good suggestion. > Implement OutputStream for libhdfs3 > ----------------------------------- > > Key: HDFS-7017 > URL: https://issues.apache.org/jira/browse/HDFS-7017 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Zhanwei Wang > Assignee: Zhanwei Wang > Attachments: HDFS-7017-pnative.002.patch, > HDFS-7017-pnative.003.patch, HDFS-7017.patch > > > Implement pipeline and OutputStream C++ interface -- This message was sent by Atlassian JIRA (v6.3.4#6332)