208 > if not repo.local(): |
208 > if not repo.local(): |
209 > return |
209 > return |
210 > |
210 > |
211 > store = repo.svfs.lfslocalblobstore |
211 > store = repo.svfs.lfslocalblobstore |
212 > class badstore(store.__class__): |
212 > class badstore(store.__class__): |
213 > def download(self, oid, src): |
213 > def download(self, oid, src, contentlength): |
214 > '''Called in the server to handle reading from the client in a |
214 > '''Called in the server to handle reading from the client in a |
215 > PUT request.''' |
215 > PUT request.''' |
216 > origread = src.read |
216 > origread = src.read |
217 > def _badread(nbytes): |
217 > def _badread(nbytes): |
218 > # Simulate bad data/checksum failure from the client |
218 > # Simulate bad data/checksum failure from the client |
219 > return b'0' * len(origread(nbytes)) |
219 > return b'0' * len(origread(nbytes)) |
220 > src.read = _badread |
220 > src.read = _badread |
221 > super(badstore, self).download(oid, src) |
221 > super(badstore, self).download(oid, src, contentlength) |
222 > |
222 > |
223 > def _read(self, vfs, oid, verify): |
223 > def _read(self, vfs, oid, verify): |
224 > '''Called in the server to read data for a GET request, and then |
224 > '''Called in the server to read data for a GET request, and then |
225 > calls self._verify() on it before returning.''' |
225 > calls self._verify() on it before returning.''' |
226 > global _readerr |
226 > global _readerr |
349 $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) |
349 $LOCALIP - - [$ERRDATE$] HG error: raise IOError(errno.EIO, r'%s: I/O error' % oid.decode("utf-8")) (glob) |
350 $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno *] b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c: I/O error (glob) |
350 $LOCALIP - - [$ERRDATE$] HG error: *Error: [Errno *] b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c: I/O error (glob) |
351 $LOCALIP - - [$ERRDATE$] HG error: (glob) |
351 $LOCALIP - - [$ERRDATE$] HG error: (glob) |
352 $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': (glob) |
352 $LOCALIP - - [$ERRDATE$] HG error: Exception happened while processing request '/.hg/lfs/objects/b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c': (glob) |
353 $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
353 $LOCALIP - - [$ERRDATE$] HG error: Traceback (most recent call last): (glob) |
354 $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh) (glob) |
354 $LOCALIP - - [$ERRDATE$] HG error: localstore.download(oid, req.bodyfh, req.headers[b'Content-Length']) |
355 $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src) (glob) |
355 $LOCALIP - - [$ERRDATE$] HG error: super(badstore, self).download(oid, src, contentlength) |
356 $LOCALIP - - [$ERRDATE$] HG error: _(b'corrupt remote lfs object: %s') % oid (glob) |
356 $LOCALIP - - [$ERRDATE$] HG error: _(b'corrupt remote lfs object: %s') % oid (glob) |
357 $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (no-py3 !) |
357 $LOCALIP - - [$ERRDATE$] HG error: LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (no-py3 !) |
358 $LOCALIP - - [$ERRDATE$] HG error: hgext.lfs.blobstore.LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (py3 !) |
358 $LOCALIP - - [$ERRDATE$] HG error: hgext.lfs.blobstore.LfsCorruptionError: corrupt remote lfs object: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c (py3 !) |
359 $LOCALIP - - [$ERRDATE$] HG error: (glob) |
359 $LOCALIP - - [$ERRDATE$] HG error: (glob) |
360 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) |
360 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/.hg/lfs/objects/276f73cfd75f9fb519810df5f5d96d6594ca2521abd86cbcd92122f7d51a1f3d': (glob) |