public class RejectedExecutionTest
extends java.lang.Object
构造器和说明 |
---|
RejectedExecutionTest(org.junit.jupiter.api.TestInfo testInfo) |
限定符和类型 | 方法和说明 |
---|---|
void |
parallelRunOn()
Test: onNext cannot be delivered due to RejectedExecutionException
Current behaviour:
No onNext, onError, onNextDropped, onErrorDropped generated
Exception:
[parallel-1] ERROR reactor.core.scheduler.Schedulers - Scheduler worker in group main failed with an uncaught exception
java.util.concurrent.RejectedExecutionException: null
at reactor.core.scheduler.RejectedExecutionTest$BoundedScheduler$BoundedWorker.schedule(RejectedExecutionTest.java:283) ~[bin/:na]
at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.trySchedule(FluxPublishOn.java:294) ~[bin/:na]
at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.onNext(FluxPublishOn.java:234) ~[bin/:na]
at reactor.core.publisher.ParallelSource$ParallelSourceMain.drainAsync(ParallelSource.java:333) ~[bin/:na]
at reactor.core.publisher.ParallelSource$ParallelSourceMain.drain(ParallelSource.java:473) ~[bin/:na]
at reactor.core.publisher.ParallelSource$ParallelSourceMain.onNext(ParallelSource.java:233) ~[bin/:na]
at reactor.core.publisher.FluxTake$TakeSubscriber.onNext(FluxTake.java:118) ~[bin/:na]
at reactor.core.publisher.FluxInterval$IntervalRunnable.run(FluxInterval.java:105) ~[bin/:na]
at reactor.core.scheduler.ParallelScheduler$ParallelWorker$ParallelWorkerTask.run(ParallelScheduler.java:367) ~[bin/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_77]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_77]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_77]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
|
void |
publishOn()
Test: onNext cannot be delivered due to RejectedExecutionException
Current behaviour:
No onNext, onError, onNextDropped, onErrorDropped generated
Exception:
[parallel-1] ERROR reactor.core.scheduler.Schedulers - Scheduler worker in group main failed with an uncaught exception
java.util.concurrent.RejectedExecutionException: null
at reactor.core.scheduler.RejectedExecutionTest$BoundedScheduler$BoundedWorker.schedule(RejectedExecutionTest.java:228) ~[bin/:na]
at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.trySchedule(FluxPublishOn.java:294) ~[bin/:na]
at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.onNext(FluxPublishOn.java:234) ~[bin/:na]
at reactor.core.publisher.FluxTake$TakeSubscriber.onNext(FluxTake.java:118) ~[bin/:na]
at reactor.core.publisher.FluxInterval$IntervalRunnable.run(FluxInterval.java:105) ~[bin/:na]
at reactor.core.scheduler.ParallelScheduler$ParallelWorker$ParallelWorkerTask.run(ParallelScheduler.java:367) ~[bin/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_77]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_77]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_77]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
|
void |
publishOnFilter() |
void |
setUp() |
void |
subscribeOn()
Test: Subscription fails because `subscribeOn` scheduler rejects execution
Current behaviour: `subscribe` throws RejectedExecutionException
FIXME: onNext/onError are on a different scheduler.
|
void |
subscribeOnCallable() |
void |
subscribeOnEmpty() |
void |
subscribeOnJust() |
void |
subscribeOnMono() |
void |
tearDown() |
@BeforeEach public void setUp()
@AfterEach public void tearDown()
@Test public void publishOn() throws java.lang.Exception
java.lang.Exception
@Test public void publishOnFilter() throws java.lang.Exception
java.lang.Exception
@Test public void parallelRunOn() throws java.lang.Exception
java.lang.Exception
@Test public void subscribeOn() throws java.lang.Exception
java.lang.Exception
@Test public void subscribeOnMono() throws java.lang.Exception
java.lang.Exception
@Test public void subscribeOnCallable() throws java.lang.Exception
java.lang.Exception
@Test public void subscribeOnEmpty() throws java.lang.Exception
java.lang.Exception
@Test public void subscribeOnJust() throws java.lang.Exception
java.lang.Exception