piotrmurach / finite_machine

A minimal finite state machine with a straightforward syntax.
https://piotrmurach.github.io/finite_machine/
MIT License
808 stars 38 forks source link

Java::JavaUtilConcurrent::RejectedExecutionException on jruby #63

Closed ahorek closed 4 years ago

ahorek commented 4 years ago

Describe the problem

a random exception after the build https://travis-ci.org/github/piotrmurach/finite_machine/jobs/684379413

Steps to reproduce the problem

test suite

Actual behaviour

Coverage report generated for spec to /home/travis/build/piotrmurach/finite_machine/coverage. 884 / 895 LOC (98.77%) covered.

[Coveralls] Submitting to https://coveralls.io/api/v1
Coveralls encountered an exception:
Java::JavaUtilConcurrent::RejectedExecutionException
Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@4057babc[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@db9ecd[Wrapped task = org.jruby.ext.timeout.Timeout$TimeoutTask@23ac164d]] rejected from java.util.concurrent.ScheduledThreadPoolExecutor@274de4bc[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
java.base/java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2055)
java.base/java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:825)
java.base/java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:340)
java.base/java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:562)
org.jruby.dist/org.jruby.ext.timeout.Timeout.yieldWithTimeout(Timeout.java:143)
org.jruby.dist/org.jruby.ext.timeout.Timeout.timeout(Timeout.java:116)
org.jruby.dist/org.jruby.ext.timeout.Timeout.timeout(Timeout.java:92)
org.jruby.dist/org.jruby.ext.timeout.Timeout$INVOKER$s$timeout.call(Timeout$INVOKER$s$timeout.gen)
...

Expected behaviour

should calculate the coverage

Describe your environment

travis

ahorek commented 4 years ago

https://github.com/jruby/jruby/issues/6212