Comment 8 for bug 413430

Revision history for this message
dbmcclain (dbm-refined-audiometrics) wrote : Re: [Bug 413430] Re: ShortReadvError on tix file

Hi Martin,

Thanks for the advice. You are teaching me some new tricks:

bash-3.2$ bzr check
Checking working tree at 'file:///Users/dbmcclain/projects/lispworks/'.
Checking repository at 'file:///Users/dbmcclain/'.
checked repository <bzrlib.transport.local.LocalTransport url=file:///Users/dbmcclain/
 > format <RepositoryFormatKnitPack1>
   2344 revisions
  17307 file-ids
  24783 unique file texts
4693654 repeated file texts
      0 unreferenced text versions
Checking branch at 'file:///Users/dbmcclain/projects/lispworks/'.
checked branch file:///Users/dbmcclain/projects/lispworks/ format
Branch format 6

On Aug 14, 2009, at 05:43 AM, Martin Pool wrote:

> 2009/8/14 dbmcclain <email address hidden>:
>> Hi Martin,
>>
>> There seems to be no problem... I reran the BZR commit just after
>> getting the error message both times, and it appears to be okay. I
>> retrieved the lastest commits to other machines just fine.
>
> I would recommend you run bzr check to make sure it's ok.
>
>> I wonder if we are running up against size boundaries in the code. I
>> understand that BZR is written in Python, which means C or C++... Not
>> quite the capabilities I have with my Lisp systems...
>
> I don't think that would cause us to see the file as truncated. It's
> possible (unlikely) we'd have problems around the 2gb file size, but
> it's unlikely the index file alone would be so big unless your
> repository is truly huge. (Can you check?)
>
> Based on this I would probably attribute it to an NFS or network
> glitch.
>
>
> --
> Martin <http://launchpad.net/~mbp/>
>
> --
> ShortReadvError on tix file
> https://bugs.launchpad.net/bugs/413430
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Bazaar Version Control System: Incomplete
>
> Bug description:
> bash-3.2$ bzr commit -m "Mach compiler improvements, Bfly recv takes
> an optional argument for the received message"
> Committing to: /Volumes/Repository/srv/bzr/Lispworks/
> modified Butterfly/Source/Keep-Alive.lisp
> modified Butterfly/Source/Standard-Server.lisp
> modified Butterfly/Source/bfly-mailbox.lisp
> modified Butterfly/Source/bfly-message.lisp
> modified Butterfly/Source/bfly-socket2.lisp
> modified Butterfly/Source/bfly-spawn.lisp
> modified Butterfly/Source/fru-replace-code.lisp
> modified Okeanos/lock-daemon.lisp
> modified Okeanos/remote-access.lisp
> modified tools/useful-macros/match-macro-ex-opt.lisp
> bzr: ERROR: bzrlib.errors.ShortReadvError: readv() read 268 bytes
> rather than 4096 bytes at 171764 for
> "d0580144782295bf6f36ded8f1415669.tix"
>
> Traceback (most recent call last):
> File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line
> 729, in exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line
> 924, in run_bzr
> ret = run(*run_argv)
> File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line
> 560, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line
> 2937, in run
> exclude=safe_relpath_files(tree, exclude))
> File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line
> 192, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/workingtree_4.py",
> line 226, in commit
> result = WorkingTree3.commit(self, message, revprops, *args,
> **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line
> 192, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/mutabletree.py",
> line 228, in commit
> *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/commit.py", line
> 397, in commit
> self.branch.repository, new_revno, self.rev_id)
> File "/Library/Python/2.5/site-packages/bzrlib/branch.py", line
> 821, in import_last_revision_info
> self.repository.fetch(source_repo, revision_id=revid)
> File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line
> 1553, in fetch
> find_ghosts=find_ghosts, fetch_spec=fetch_spec)
> File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line
> 192, in write_locked
> result = unbound(self, *args, **kwargs)
> File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line
> 3514, in fetch
> return self._pack(self.source, self.target, revision_ids)
> File "/Library/Python/2.5/site-packages/bzrlib/repository.py", line
> 3520, in _pack
> revision_ids).pack()
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 753, in pack
> return self._create_pack_from_packs()
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 943, in _create_pack_from_packs
> new_pack._check_references()
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 189, in _check_references
> index.iter_entries(external_refs))
> File "/Library/Python/2.5/site-packages/bzrlib/repofmt/
> pack_repo.py", line 188, in <genexpr>
> k for (idx, k, v, r) in
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line
> 1258, in iter_entries
> for node in index.iter_entries(keys):
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line 626,
> in iter_entries
> self._lookup_keys_via_location, self._size, keys))
> File "/Library/Python/2.5/site-packages/bzrlib/bisect_multi.py",
> line 50, in bisect_multi_bytes
> search_results = content_lookup(search_keys)
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line 769,
> in _lookup_keys_via_location
> self._read_and_parse(readv_ranges)
> File "/Library/Python/2.5/site-packages/bzrlib/index.py", line
> 1138, in _read_and_parse
> for offset, data in readv_data:
> File "/Library/Python/2.5/site-packages/bzrlib/transport/
> __init__.py", line 701, in _seek_and_read
> c_offset.length, actual=len(data))
> ShortReadvError: readv() read 268 bytes rather than 4096 bytes at
> 171764 for "d0580144782295bf6f36ded8f1415669.tix"
>
> bzr 1.16.1 on python 2.5.1 (darwin)
> arguments: ['/usr/local/bin/bzr', 'commit', '-m', 'Mach compiler
> improvements, Bfly recv takes an optional argument for the received
> message']
> encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
> plugins:
> bzrtools /Library/Python/2.5/site-packages/bzrlib/
> plugins/bzrtools [1.16]
> email /Library/Python/2.5/site-packages/bzrlib/
> plugins/email [unknown]
> extmerge /Library/Python/2.5/site-packages/bzrlib/
> plugins/extmerge [unknown]
> launchpad /Library/Python/2.5/site-packages/bzrlib/
> plugins/launchpad [1.16.1]
> loom /Library/Python/2.5/site-packages/bzrlib/
> plugins/loom [1.4dev]
> netrc_credential_store /Library/Python/2.5/site-packages/bzrlib/
> plugins/netrc_credential_store [1.16.1]
> qbzr /Library/Python/2.5/site-packages/bzrlib/
> plugins/qbzr [0.11]
> rebase /Library/Python/2.5/site-packages/bzrlib/
> plugins/rebase [0.5.1]
> search /Library/Python/2.5/site-packages/bzrlib/
> plugins/search [1.7dev]
> svn /Library/Python/2.5/site-packages/bzrlib/
> plugins/svn [0.6.2]
> *** Bazaar has encountered an internal error.
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
> including this traceback, and a description of what you
> were doing when the error occurred.
>

Dr. David McClain
<email address hidden>