Opened 2 months ago

Last modified 3 weeks ago

#30274 new defect

Do not scale relays' bandwidth when there is not descriptor

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: 1.1.x-final
Component: Core Tor/sbws Version: sbws: 1.1.0
Severity: Normal Keywords: generate
Cc: juga Actual Points:
Parent ID: Points: 1
Reviewer: Sponsor:

Description

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'

Child Tickets

Change History (1)

comment:1 Changed 3 weeks ago by teor

What does torflow do when this happens?

Note: See TracTickets for help on using tickets.