[tor-bugs] #30274 [Core Tor/sbws]: Do not scale relays' bandwidth when there is not descriptor
Tor Bug Tracker & Wiki
blackhole at torproject.org
Tue Apr 23 16:13:23 UTC 2019
#30274: Do not scale relays' bandwidth when there is not descriptor
-------------------------------+-------------------------------
Reporter: juga | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: sbws: 1.1.x-final
Component: Core Tor/sbws | Version: sbws: 1.1.0
Severity: Normal | Keywords: generate
Actual Points: | Parent ID:
Points: 1 | Reviewer:
Sponsor: |
-------------------------------+-------------------------------
Sometimes sbws does not get the descriptor for a relay that is in the
consensus.
This might be due #29716.
I was hoping to make a refactor before changing this, but since
refactoring would take longer, this should be fixed first.
{{{
Traceback (most recent call last):
File "/usr/bin/sbws", line 11, in <module>
load_entry_point('sbws==1.1.0.dev0', 'console_scripts', 'sbws')()
File "/usr/lib/python3/dist-packages/sbws/sbws.py", line 75, in main
exit(comm['f'](*comm['a'], **comm['kw']))
File "/usr/lib/python3/dist-packages/sbws/core/generate.py", line 119,
in main
consensus_path=consensus_path)
File "/usr/lib/python3/dist-packages/sbws/lib/v3bwfile.py", line 951, in
from_results
torflow_cap, round_digs)
File "/usr/lib/python3/dist-packages/sbws/lib/v3bwfile.py", line 1248,
in bw_torflow_scale
desc_bw = min(desc_bw_obs, l.desc_bw_avg)
TypeError: '<' not supported between instances of 'NoneType' and
'NoneType'
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/30274>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list