[tor-bugs] #11860 [Ooni]: Annotate on-disk reports with whether they've been successfully uploaded to the collector

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Jun 19 14:19:16 UTC 2014


#11860: Annotate on-disk reports with whether they've been successfully uploaded to
the collector
-----------------------------+---------------------
     Reporter:  arma         |      Owner:  hellais
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:
    Component:  Ooni         |    Version:
   Resolution:               |   Keywords:
Actual Points:               |  Parent ID:  #11862
       Points:               |
-----------------------------+---------------------

Comment (by hellais):

 This has been implemented in this branch that is open for pull request:
 https://github.com/TheTorProject/ooni-probe/pull/327.

 Basically we keep track of the state of reports created with a backend. A
 report can have the following states:

 * not-created. If it has not been created, because the user specified to
 not use a collector.

 * creation-failed. If we attempted to create the report, but failed to do
 so either because the collector does not accept our report or because it
 was unreachable at the time.

 * created. If the report has been successfully created, but has not yet
 been closed.

 * incomplete. If the report has been created, but we have failed to update
 the report with some data.

 Closed reports are eliminated from the report log.

 Inside of the log file we also record a timestamp of when the report was
 created. The report id with which the report was created with the backend
 and the process id of the ooniprobe instance responsible for creating the
 report.

 I plan to now implement a tool that allows a user to upload reports to a
 ooni collector by reading the report log file.

 I think that by default we should re-upload only the reports that are in
 the state "not-created" or "creation-failed". It should also be possible
 for the user to upload also the "incomplete" and "created" reports by
 requesting to do so manually.

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


More information about the tor-bugs mailing list