Detect node store batch write failures (RIPD-270):

* Raise open file limit from the soft max to the hard max.
This commit is contained in:
Nik Bougalis
2014-08-05 12:50:12 -07:00
parent 1c005a0292
commit d91c1f96cc
4 changed files with 16 additions and 3 deletions

View File

@@ -23,6 +23,10 @@
#include <beast/unit_test.h>
#include <beast/streams/debug_ostream.h>
#if defined(BEAST_LINUX) || defined(BEAST_MAC) || defined(BEAST_BSD)
#include <sys/resource.h>
#endif
namespace po = boost::program_options;
namespace ripple {

View File

@@ -172,7 +172,10 @@ public:
hyperleveldb::WriteOptions const options;
m_db->Write (options, &wb).ok ();
auto ret = m_db->Write (options, &wb);
if (!ret.ok ())
throw std::runtime_error ("storeBatch failed: " + ret.ToString());
}
void

View File

@@ -174,7 +174,10 @@ public:
leveldb::WriteOptions const options;
m_db->Write (options, &wb).ok ();
auto ret = m_db->Write (options, &wb);
if (!ret.ok ())
throw std::runtime_error ("storeBatch failed: " + ret.ToString());
}
void

View File

@@ -261,7 +261,10 @@ public:
rocksdb::WriteOptions const options;
m_db->Write (options, &wb).ok ();
auto ret = m_db->Write (options, &wb);
if (!ret.ok ())
throw std::runtime_error ("storeBatch failed: " + ret.ToString());
}
void