BIND 10 #521: bind10.boot_time can be incorrect

BIND 10 Development do-not-reply at isc.org
Thu Jan 20 17:40:19 UTC 2011


#521: bind10.boot_time can be incorrect
-------------------------------------+-------------------------------------
           Reporter:  jinmei         |                      Owner:
               Type:  defect         |                     Status:  new
           Priority:  major          |                  Milestone:  feature
          Component:  statistics     |  backlog item
          Sensitive:  0              |                   Keywords:
Add Hours to Ticket:  0              |  Estimated Number of Hours:  0
        Total Hours:  0              |                  Billable?:  1
                                     |                  Internal?:  0
-------------------------------------+-------------------------------------
 On my personal server (which is quite slow) "Stats show" shows a bogus
 bind10.boot_time:
 {{{
 > Stats show
 {
     "auth.queries.tcp": 5,
     "auth.queries.udp": 271,
     "bind10.boot_time": "1970-01-01T00:00:00Z",
     ...
 }}}

 I suspect this is because when the bind10 process tried to send this value
 to b10-stats before it's running.  bind10 introduces 1 second of delay,
 but it's probably too short for my poor server:
 {{{
     # send "bind10.boot_time" to b10-stats
     time.sleep(1) # wait a second
 ...
     boss_of_bind.cc_session.group_sendmsg(cmd, 'Stats')
 }}}

 As my case indicates, adding a sleep is not a reliable way.  On the
 other hand, for faster machines it could be an unnecessary delay before
 the system is ready to work and is thus undesirable.

 IMO the right solution is that bind10 remembers the boot time and has
 b10-stats ask for it.

-- 
Ticket URL: <http://bind10.isc.org/ticket/521>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list