Commit f8be0563 authored by Tim Schoof's avatar Tim Schoof
Browse files

Throw error when last record does not contain any valid acknowledged id

parent b01c0b6c
Pipeline #27 failed with stages
in 12 minutes and 5 seconds
...@@ -84,6 +84,11 @@ class SerialWorker(Worker): ...@@ -84,6 +84,11 @@ class SerialWorker(Worker):
last_output_metadata["meta"]["acknowledged_ids"]) last_output_metadata["meta"]["acknowledged_ids"])
except KeyError: except KeyError:
last_acknowledged_id = 0 last_acknowledged_id = 0
if last_acknowledged_id < 0:
raise ValueError(
"No valid acknowledged id in last record of output stream "
"last_acknowledged_id=%s",
last_acknowledged_id)
input_start_id = last_acknowledged_id + 1 input_start_id = last_acknowledged_id + 1
output_start_id = last_output_id + 1 output_start_id = last_output_id + 1
return input_start_id, output_start_id return input_start_id, output_start_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment