#31953 closed defect (fixed)

IllegalStateException on fresh instances

Reported by: irl Owned by: metrics-team
Priority: High Milestone:
Component: Metrics/Onionoo Version:
Severity: Normal Keywords:
Cc: irl, metrics-team Actual Points:
Parent ID: #31659 Points:
Reviewer: Sponsor:


I think this could be related to #26711. Running the updater on a fresh instance will end with an IllegalStateException:

2019-10-03 13:32:21,831 INFO o.t.m.o.cron.Main:193 Shutting down.
2019-10-03 13:32:21,831 DEBUG o.t.m.o.u.DescriptorSource:217 Writing parse histories for recent descriptors...
Exception in thread "main" java.lang.IllegalStateException: Operation is not permitted before finishing to read.
	at org.torproject.descriptor.impl.DescriptorReaderImpl.getExcludedFiles(DescriptorReaderImpl.java:68)
	at org.torproject.metrics.onionoo.updater.DescriptorQueue.writeHistoryFile(DescriptorQueue.java:118)
	at org.torproject.metrics.onionoo.updater.DescriptorSource.writeHistoryFiles(DescriptorSource.java:219)
	at org.torproject.metrics.onionoo.cron.Main.shutDown(Main.java:195)
	at org.torproject.metrics.onionoo.cron.Main.run(Main.java:130)
	at org.torproject.metrics.onionoo.cron.Main.runOrScheduleExecutions(Main.java:102)
	at org.torproject.metrics.onionoo.cron.Main.main(Main.java:34)

Child Tickets

Change History (2)

comment:1 Changed 14 months ago by karsten

Status: newneeds_information

This issue might be the related to #31952. That other ticket that you mentioned, #26711, is contained in the current release, so it's not yet another fixed-but-unreleased bug. But the fact that an exception occurred while reading descriptors could very well be related to the exception above. Let's try this out with the new Onionoo release that I'm going to prepare today. Setting to needs_information until we know whether this issue is still around with the new release.

comment:2 Changed 14 months ago by irl

Resolution: fixed
Status: needs_informationclosed

This does solve the issue.

Note: See TracTickets for help on using tickets.