bzr shows incorrect time for lock acquire retry
Bug #591832 reported by
Parth Malwankar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
Below, bzr says it will continue to try to acquire lock until 17:50 while local time is 22:20.
This is with 2.2b3 on Lucid.
[trunk]% date
Wed Jun 9 22:20:10 IST 2010
[trunk]% bzr push lp:~parthm/+junk/lock-test
Unable to obtain lock lp-69989648:
held by <email address hidden> on host crowberry [process #26780]
locked 11 hours, 50 minutes ago
Will continue to try until 17:50:41, unless you press Ctrl-C.
See "bzr help break-lock" for more.
bzr: ERROR: Could not acquire lock "(remote lock)":
[trunk]% date
Wed Jun 9 22:20:46 IST 2010
[trunk]%
Changed in bzr: | |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: check-for-breezy |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Parth Malwankar wrote: ///~parthm/ %2Bjunk/ lock-test/ .bzr/branch/ lock
> Public bug reported:
>
> Below, bzr says it will continue to try to acquire lock until 17:50 while local time is 22:20.
> This is with 2.2b3 on Lucid.
>
> [trunk]% date
> Wed Jun 9 22:20:10 IST 2010
> [trunk]% bzr push lp:~parthm/+junk/lock-test
> Unable to obtain lock lp-69989648:
> held by <email address hidden> on host crowberry [process #26780]
> locked 11 hours, 50 minutes ago
> Will continue to try until 17:50:41, unless you press Ctrl-C.
> See "bzr help break-lock" for more.
> bzr: ERROR: Could not acquire lock "(remote lock)":
> [trunk]% date
> Wed Jun 9 22:20:46 IST 2010
> [trunk]%
>
> ** Affects: bzr
> Importance: Undecided
> Status: New
>
Can you tell us what:
import time '%H:%M: %S', time.localtime(t))
t = time.time()
print 'localtime: ', time.strftime(
Gives?
The code in question seems to be doing (summarized):
timeout = _DEFAULT_ TIMEOUT_ SECONDS # 300 '%H:%M: %S',
time. localtime( deadline) )
deadline = time.time() + timeout
if deadline_str is None:
deadline_str = time.strftime(
I don't see anything particularly wrong with that, but there may be
something funny in how we are handling your local time (or timezone, or
something).
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
Py/4ACgkQJdeBCY SNAAMerACgmPVIk B54Av58I+ WM1PSeimzn AsAoF5n8eWPWMYf m01iyWXQLk
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
hZEAn0+
=Pu8n
-----END PGP SIGNATURE-----