[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #19465 [Core Tor/Tor]: Rencache unit test can fail on very slow system



#19465: Rencache unit test can fail on very slow system
------------------------------+--------------------------------
     Reporter:  dgoulet       |      Owner:  dgoulet
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.2.9.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:  test
Actual Points:                |  Parent ID:
       Points:  0.1           |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 The test uses a time in the "future" that is the maximum acceptable skew
 clock plus 10 seconds:

 {{{
 static const int TIME_IN_THE_FUTURE = REND_CACHE_MAX_SKEW + 10;
 }}}

 When using this time for a descriptor and trying to store it in the cache,
 we should have an error (expected) since it's too far away in the future
 thus rejected. However, on very slow system such as `armel`, we've
 sometime noticed test failure because it would take more than 10 seconds
 to reach the check in `rendcache.c` using the store function:

 {{{
 if (parsed->timestamp > now + REND_CACHE_MAX_SKEW) {
   [...]
   goto err
 }
 }}}

 Which results in a success if we take more than 10 seconds to get there.

 This has been reported by weasel and he tested a patch to increase that
 extra time to 60 seconds which seems to fix the issue:

 `OK: 1122; FAIL: 0`

 Branch coming up.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19465>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs