[metrics-bugs] #20695 [Metrics/CollecTor]: handle json reading exception instead of escalating
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Nov 17 13:04:38 UTC 2016
#20695: handle json reading exception instead of escalating
-----------------------------------+--------------------------
Reporter: iwakeh | Owner: metrics-team
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Metrics/CollecTor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
-----------------------------------+--------------------------
tom ritter reported this error on the
[https://lists.torproject.org/pipermail/metrics-
team/2016-November/000235.html metrics-list].
{{{
V, 2016-11-16 16:00:00, 7818/7819 S (100.0%), 7815/7815 E (100.0%)
V, 2016-11-16 16:00:00, 7784/7785 S (100.0%), 7781/7781 E (100.0%)
V, 2016-11-16 16:00:00, 7782/7783 S (100.0%), 7778/7779 E (100.0%)
C, 2016-11-16 16:00:00, 8/8 V (100.0%), 7127/7128 S (100.0%),
7125/7125 E (100.0%)
M, 2016-11-16 16:00:00, 7128/7128 M (100.0%)
2016-11-16 16:06:15,696 ERROR o.t.c.c.CollecTorMain:71 The relaydescs
module failed: com.google.gson.stream.MalformedJsonException: Use
JsonReader.setLenient(true) to accept malformed JSON at line 1 column
17791699
com.google.gson.JsonSyntaxException:
com.google.gson.stream.MalformedJsonException: Use
JsonReader.setLenient(true) to accept malformed JSON at line 1 column
17791699
at com.google.gson.Gson.assertFullConsumption(Gson.java:779)
~[collector-1.1.0.jar:1.1.0-d9e32d5]
at com.google.gson.Gson.fromJson(Gson.java:742)
~[collector-1.1.0.jar:1.1.0-d9e32d5]
at
org.torproject.collector.relaydescs.ReferenceChecker.readReferencesFile(ReferenceChecker.java:145)
~[collector-1.1.0.jar:1.1.0-d9e32d5]
at
org.torproject.collector.relaydescs.ReferenceChecker.check(ReferenceChecker.java:84)
~[collector-1.1.0.jar:1.1.0-d9e32d5]
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20695>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the metrics-bugs
mailing list