Rev 2401: (robertc) SmartServer startup and shutdown hooks, and smart server shutdown logic implementation. (Robert Collins) in /home/pqm/archives/thelove/bzr/+trunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Apr 5 08:31:45 BST 2007


------------------------------------------------------------
revno: 2401
revision-id: pqm at pqm.ubuntu.com-20070405073143-8fa894c829ab5e50
parent: pqm at pqm.ubuntu.com-20070404213903-fe78a7a55c37ee95
parent: robertc at robertcollins.net-20070405065917-mu99paqftpq55f5m
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2007-04-05 08:31:43 +0100
message:
  (robertc) SmartServer startup and shutdown hooks, and smart server shutdown logic implementation. (Robert Collins)
added:
  bzrlib/hooks.py                hooks.py-20070325015548-ix4np2q0kd8452au-1
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/branch.py               branch.py-20050309040759-e4baf4e0d046576e
  bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
  bzrlib/tests/test_branch.py    test_branch.py-20060116013032-97819aa07b8ab3b5
  bzrlib/tests/test_selftest.py  test_selftest.py-20051202044319-c110a115d8c0456a
  bzrlib/tests/test_smart_transport.py test_ssh_transport.py-20060608202016-c25gvf1ob7ypbus6-2
  bzrlib/trace.py                trace.py-20050309040759-c8ed824bdcd4748a
  bzrlib/transport/smart.py      ssh.py-20060608202016-c25gvf1ob7ypbus6-1
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070405065917-mu99paqftpq55f5m
    parent: robertc at robertcollins.net-20070405003903-u1ys8t2lo5gs6b35
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: hpss-hooks
    timestamp: Thu 2007-04-05 16:59:17 +1000
    message:
      Review comments.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070405003903-u1ys8t2lo5gs6b35
    parent: robertc at robertcollins.net-20070404085028-abgpe4zylhsdoaqd
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: hpss-hooks
    timestamp: Thu 2007-04-05 10:39:03 +1000
    message:
      Overhaul the SmartTCPServer connect-thread logic to synchronise on startup and shutdown and notify the server if it is in accept.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070404085028-abgpe4zylhsdoaqd
    parent: robertc at robertcollins.net-20070404051938-2lnvpsm2tbo5a6g2
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: integration
    timestamp: Wed 2007-04-04 18:50:28 +1000
    message:
      Avoid logging smart server errors when ctrl-C'd.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070404051938-2lnvpsm2tbo5a6g2
    parent: robertc at robertcollins.net-20070327214048-286uc943sgxma2xe
    parent: pqm at pqm.ubuntu.com-20070404022946-b93fc2e49b3bb195
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: hpss-hooks
    timestamp: Wed 2007-04-04 15:19:38 +1000
    message:
      Merge bzr.dev.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070327214048-286uc943sgxma2xe
    parent: robertc at robertcollins.net-20070327045759-hb7j634wpm1ris7l
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: integration
    timestamp: Wed 2007-03-28 07:40:48 +1000
    message:
      Fix Branch hook tests for the new eans of preserving hooks by the test suite.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070327045759-hb7j634wpm1ris7l
    parent: robertc at robertcollins.net-20070327043224-9ql8frcekqjbb64g
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: integration
    timestamp: Tue 2007-03-27 14:57:59 +1000
    message:
      Add more debugging code to the smart server to debug pqm failures.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070327043224-9ql8frcekqjbb64g
    parent: robertc at robertcollins.net-20070327042126-32pgs6ityvdt72tg
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: integration
    timestamp: Tue 2007-03-27 14:32:24 +1000
    message:
      Fix all smart_transport tests.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070327042126-32pgs6ityvdt72tg
    parent: robertc at robertcollins.net-20070327024546-c7t95nl7j9t4x3jq
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: integration
    timestamp: Tue 2007-03-27 14:21:26 +1000
    message:
      Convert unconvered SmartServer subclass to use the cached sockname.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070327024546-c7t95nl7j9t4x3jq
    parent: pqm at pqm.ubuntu.com-20070326073003-37941d0fa5a5a6c4
    parent: robertc at robertcollins.net-20070327024201-ntm3ek1rrkkmg2yd
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: integration
    timestamp: Tue 2007-03-27 12:45:46 +1000
    message:
      New SmartServer hooks facility. There are two initial hooks documented in
      bzrlib.transport.smart.SmartServerHooks. The two initial hooks allow
      plugins to execute code upon server startup and shutdown.
      (Robert Collins).
      
      SmartServer in standalone mode will now close its listening socket when it
      stops, rather than waiting for garbage collection.  This primarily fixes
      test suite hangs when a test tries to connect to a shutdown server.  It
      may also help improve behaviour when dealing with a server running on a
      specific port (rather than dynamically assigned ports).  (Robert Collins)
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070327024201-ntm3ek1rrkkmg2yd
    parent: robertc at robertcollins.net-20070325085956-my8jv7cifqzyltyz
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: hpss-hooks
    timestamp: Tue 2007-03-27 12:42:01 +1000
    message:
      Review feedback.
    ------------------------------------------------------------
    merged: robertc at robertcollins.net-20070325085956-my8jv7cifqzyltyz
    parent: pqm at pqm.ubuntu.com-20070321071219-55447700ec71371f
    committer: Robert Collins <robertc at robertcollins.net>
    branch nick: hpss-hooks
    timestamp: Sun 2007-03-25 18:59:56 +1000
    message:
      New SmartServer hooks facility. There are two initial hooks documented
      in bzrlib.transport.smart.SmartServerHooks. The two initial hooks allow
      plugins to execute code upon server startup and shutdown.
      (Robert Collins).
      
      SmartServer in standalone mode will now close its listening socket
      when it stops, rather than waiting for garbage collection. This primarily
      fixes test suite hangs when a test tries to connect to a shutdown server.
      It may also help improve behaviour when dealing with a server running
      on a specific port (rather than dynamically assigned ports).
      (Robert Collins)



More information about the bazaar-commits mailing list