[tor-bugs] #8049 [Stem]: Stem's DescriptorReader misses 10% of descriptors in tarballs
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Jan 24 12:09:02 UTC 2013
#8049: Stem's DescriptorReader misses 10% of descriptors in tarballs
---------------------+------------------------------------------------------
Reporter: karsten | Owner: atagar
Type: defect | Status: new
Priority: normal | Milestone:
Component: Stem | Version:
Keywords: | Parent:
Points: | Actualpoints:
---------------------+------------------------------------------------------
When I parse server descriptors in a metrics tarball and in extracted form
using DescriptorReader, I get different numbers of descriptors:
{{{
from stem.descriptor.reader import DescriptorReader
descriptors = 0
with DescriptorReader('server-descriptors-2012-12.tar') as reader:
for descriptor in reader:
descriptors += 1
print "%d descriptors in tarball." % (descriptors, )
descriptors = 0
with DescriptorReader('server-descriptors-2012-12/') as reader:
for descriptor in reader:
descriptors += 1
print "%d descriptors in extracted directory." % (descriptors, )
}}}
250048 descriptors in tarball.
279042 descriptors in extracted directory.
What happens to the rest?
This bug means that most of #7828 must be re-run. :(
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8049>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list