[tor-bugs] #19830 [Metrics/CollecTor]: Check if recent directory exists before checking available space

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 5 11:44:09 UTC 2016


#19830: Check if recent directory exists before checking available space
-------------------------------+---------------------------------
 Reporter:  karsten            |          Owner:  iwakeh
     Type:  defect             |         Status:  needs_review
 Priority:  Low                |      Milestone:  CollecTor 1.0.0
Component:  Metrics/CollecTor  |        Version:
 Severity:  Normal             |     Resolution:
 Keywords:                     |  Actual Points:
Parent ID:                     |         Points:
 Reviewer:                     |        Sponsor:
-------------------------------+---------------------------------
Changes (by iwakeh):

 * status:  accepted => needs_review


Comment:

 Please review
 [https://gitweb.torproject.org/user/iwakeh/collector.git/commit/?h=task-19830
 my branch].

 Solution:
 Now check the root of given path. That should always exist and be
 accessible. Any IOException here is a major problem and escalated via
 RuntimeException.

 Added test for the problem and added some necessary test permissions.

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


More information about the tor-bugs mailing list