mirror of
https://github.com/wassname/ray.git
synced 2026-08-11 11:24:51 +08:00
[Streaming] Fault Tolerance Implementation (#10595)
This commit is contained in:
@@ -68,7 +68,7 @@ class OutputCollector(Collector):
|
||||
python_buffer = self.python_serializer.serialize(record)
|
||||
self._writer.write(
|
||||
self._channel_ids[partition_index],
|
||||
serialization._PYTHON_TYPE_ID + python_buffer)
|
||||
bytes([serialization.PYTHON_TYPE_ID]) + python_buffer)
|
||||
else:
|
||||
# avoid repeated serialization
|
||||
if cross_lang_buffer is None:
|
||||
@@ -76,4 +76,5 @@ class OutputCollector(Collector):
|
||||
record)
|
||||
self._writer.write(
|
||||
self._channel_ids[partition_index],
|
||||
serialization._CROSS_LANG_TYPE_ID + cross_lang_buffer)
|
||||
bytes([serialization.CROSS_LANG_TYPE_ID]) +
|
||||
cross_lang_buffer)
|
||||
|
||||
Reference in New Issue
Block a user