[Streaming] Fault Tolerance Implementation (#10595)

This commit is contained in:
Lixin Wei
2020-09-05 16:40:47 +08:00
committed by GitHub
parent 31f8ce4768
commit f31ee84bfd
161 changed files with 7071 additions and 1239 deletions
+16
View File
@@ -63,6 +63,14 @@ bool StreamingMessageBundleMeta::operator==(StreamingMessageBundleMeta *meta) co
return operator==(*meta);
}
std::ostream &operator<<(std::ostream &os, const StreamingMessageBundleMeta &meta) {
os << "{"
<< "last_message_id_: " << meta.last_message_id_
<< ", message_list_size_: " << meta.message_list_size_
<< ", bundle_type_: " << static_cast<int>(meta.bundle_type_) << "}";
return os;
}
StreamingMessageBundleMeta::StreamingMessageBundleMeta()
: bundle_type_(StreamingMessageBundleType::Empty) {}
@@ -188,5 +196,13 @@ bool StreamingMessageBundle::operator==(StreamingMessageBundle &bundle) const {
bool StreamingMessageBundle::operator==(StreamingMessageBundle *bundle) const {
return this->operator==(*bundle);
}
std::ostream &operator<<(std::ostream &os, const DataBundle &bundle) {
os << "{"
<< "data: " << (void *)bundle.data << ", data_size: " << bundle.data_size
<< ", channel last_barrier_id: " << bundle.last_barrier_id
<< ", meta: " << *(bundle.meta) << "}";
return os;
}
} // namespace streaming
} // namespace ray