backend: make objectstores more robust, add logging, add reporting back of workers

This commit is contained in:
Philipp Moritz
2016-03-10 16:55:56 -08:00
parent 7905d4c769
commit 9440e0f08a
9 changed files with 196 additions and 99 deletions
+15
View File
@@ -35,6 +35,21 @@ public:
typedef std::vector<std::vector<ObjStoreId> > ObjTable;
typedef std::unordered_map<std::string, FnInfo> FnTable;
#define ORCH_VERBOSE -1
#define ORCH_INFO 0
#define ORCH_DEBUG 1
#define ORCH_FATAL 2
#define ORCH_LOG(LEVEL, MESSAGE) \
if (LEVEL == ORCH_VERBOSE) { \
\
} else if (LEVEL == ORCH_FATAL) { \
std::cerr << "fatal error occured: " << MESSAGE << std::endl; \
std::exit(1); \
} else { \
std::cout << MESSAGE << std::endl; \
}
class objstore_not_registered_error : public std::runtime_error
{
public: