Fix deadlock on ChunkedIO
What does this MR do?
This fixes a deadlock on readline
where we would loop forever when the trace chunk is degenerated.
This makes this error to be voiced hard via an exception. It does not solve the problem of data corruption, but it will contain the problem.
What are the relevant issue numbers?
Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/51502
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides
Edited by Stan Hu