Revert "[Streaming] Fault Tolerance Implementation (#10008)" (#10582)

This reverts commit 1b1466748f.
This commit is contained in:
SangBin Cho
2020-09-04 13:21:18 -07:00
committed by GitHub
parent da83bbd764
commit cb919c5e5c
158 changed files with 1226 additions and 7039 deletions
-44
View File
@@ -1,44 +0,0 @@
#pragma once
#include <ostream>
#include <sstream>
#include <string>
namespace ray {
namespace streaming {
enum class StreamingStatus : uint32_t {
OK = 0,
ReconstructTimeOut = 1,
QueueIdNotFound = 3,
ResubscribeFailed = 4,
EmptyRingBuffer = 5,
FullChannel = 6,
NoSuchItem = 7,
InitQueueFailed = 8,
GetBundleTimeOut = 9,
SkipSendEmptyMessage = 10,
Interrupted = 11,
OutOfMemory = 13,
Invalid = 14,
UnknownError = 15,
TailStatus = 999,
MIN = OK,
MAX = TailStatus
};
static inline std::ostream &operator<<(std::ostream &os, const StreamingStatus &status) {
os << static_cast<std::underlying_type<StreamingStatus>::type>(status);
return os;
}
#define RETURN_IF_NOT_OK(STATUS_EXP) \
{ \
StreamingStatus state = STATUS_EXP; \
if (StreamingStatus::OK != state) { \
return state; \
} \
}
} // namespace streaming
} // namespace ray