Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled task cannot be picked up #4499

Closed
yeah007 opened this issue Aug 19, 2022 · 3 comments
Closed

Scheduled task cannot be picked up #4499

yeah007 opened this issue Aug 19, 2022 · 3 comments
Labels
Milestone

Comments

@yeah007
Copy link

yeah007 commented Aug 19, 2022

This issue happened intermittently in large deployment environment. The sample codes is:
RExecutorFuture future = executor.scheduleWithFixedDelay(task, schedule.initialDelayMs(), schedule.intervalMs(), TimeUnit.MILLISECONDS);

future.whenComplete(((o, e) -> {
if (e != null) {
String resourceId = "xxxxx";
log.error("[{}] Redisson response of task submission failure.", resourceId, (Throwable)e);
}
}));

Expected behavior
The tasks can be submitted successfully.

Actual behavior
Lots of tasks failed to submit

org.redisson.remote.RemoteServiceTimeoutException: No response after 3600000ms
at org.redisson.remote.BaseRemoteProxy$1.run(BaseRemoteProxy.java:133) ~[redisson-3.17.5.jar!/:3.17.5]
at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:153) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:174) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:167) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:470) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:503) ~[netty-transport-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.79.Final.jar!/:4.1.79.Final]
at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

Steps to reproduce or test case

Redis version
redis_version:5.0.5

Redisson version
3.17.5

Redisson configuration
Default

@nanw1103
Copy link

+1

@yeah007
Copy link
Author

yeah007 commented Aug 21, 2022

The task can be picked up if executor service was restarted.

@mrniko
Copy link
Member

mrniko commented Dec 14, 2022

Fixed. Thanks for report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants