LenLeft can still go negative. While the guard clause prevents an earlier bug, replication fails when it hits this issue.
In the following case, LenLeft is -673327 which matches no clauses (we expect either 0 or > 0). Somehow we are starting with a LenLeft value lower than the number of bytes we subsequently receive.
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Field||Original Value||New Value|
|Affects Version/s||1.0.2 [ 12315258 ]|
|Assignee||Robert Newson [ rnewson ]|
|Fix Version/s||1.0.3 [ 12316107 ]|
|Fix Version/s||1.1 [ 12314933 ]|
|Fix Version/s||1.2 [ 12315198 ]|
|Fix Version/s||1.0.1 [ 12315197 ]|
|Fix Version/s||1.0.2 [ 12315258 ]|
|Affects Version/s||1.0.1 [ 12315197 ]|
|Priority||Major [ 3 ]||Blocker [ 1 ]|