[metrics-bugs] #33090 [Metrics/Library]: Make all Descriptor implementors serializable

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jan 29 09:13:56 UTC 2020

#33090: Make all Descriptor implementors serializable
 Reporter:  notirl           |          Owner:  metrics-team
     Type:  enhancement      |         Status:  new
 Priority:  Medium           |      Milestone:
Component:  Metrics/Library  |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:                   |        Sponsor:

Comment (by notirl):

 It looks like it needs to be not just the Descriptor interface, because
 some other interfaces are not subinterfaces of that. We probably would
 want to make all our interfaces serializable in metrics-lib.

 The only issue I have found is where we use TreeMap because the comparator
 in there is an anonymous class that is not serializable. We can override
 those comparators with serializable but still anonymous comparators

 I'm able to have consensus objects passed around in Apache Beam now, and
 pull out the nickname of every relay in a consensus last month at record

Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33090#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online

More information about the metrics-bugs mailing list