你好,我使用的版本是1.9.2。将xxl-job-admin做成docker镜像部署,执行器用springboot在宿主机上部署,使用JDK11。当从1.9.2升级到2.0.0之后,执行器启动成功之后,jetty关闭了,导致任务执行失败. 执行器启动日志:
2018-11-05 17:39:44.889 INFO 26133 --- [ Thread-18] c.x.j.c.t.ExecutorRegistryThread : >>>>>>>>>>> xxl-job registry success, registryParam:RegistryParamm
{registGroup='EXECUTOR', registryKey='poster-executor', registryValue='192.168.4.181:9999'}, registryResult:ReturnT [code=200, msg=null, content=null]
27241,9 95%
2018-11-05 17:37:10.571 INFO 26133 --- [ main] c.m.p.j.c.JobConfig : >>>>>>>>>>> xxl-job config init.
2018-11-05 17:37:10.879 INFO 26133 --- [ main] c.x.r.r.p.XxlRpcProviderFactory : >>>>>>>>>>> xxl-rpc, provider factory add service success. serviceKey = com.xxl.job.core.biz.ExecutorBiz, serviceBean = class com.xxl.job.core.biz.impl.ExecutorBizImpl
2018-11-05 17:37:11.052 INFO 26133 --- [ Thread-6] o.e.j.u.log : Logging initialized @39922ms to org.eclipse.jetty.util.log.Slf4jLog
2018-11-05 17:37:11.486 INFO 26133 --- [ Thread-6] o.e.j.s.Server : jetty-9.4.12.v20180830; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 11+28
2018-11-05 17:37:12.118 INFO 26133 --- [ Thread-6] o.e.j.s.AbstractConnector : Started ServerConnector@54e5742a{HTTP/1.1,[http/1.1]}{0.0.0.0:9999}
2018-11-05 17:37:12.118 INFO 26133 --- [ Thread-6] o.e.j.s.Server : Started @40989ms
2018-11-05 17:37:12.119 INFO 26133 --- [ Thread-6] c.x.r.r.n.Server : >>>>>>>>>>> xxl-rpc remoting server start success, nettype = com.xxl.rpc.remoting.net.impl.jetty.server.JettyServer, port = 9999
2018-11-05 17:37:14.080 INFO 26133 --- [ main] o.s.s.c.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2018-11-05 17:37:14.692 INFO 26133 --- [ Thread-18] c.x.j.c.t.ExecutorRegistryThread : >>>>>>>>>>> xxl-job registry success, registryParam:RegistryParam{registGroup='EXECUTOR', registryKey='poster-executor', registryValue='192.168.4.181:9999'}, registryResult:ReturnT [code=200, msg=null, content=null]
2018-11-05 17:37:16.638 INFO 26133 --- [ main] o.s.b.a.e.w.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2018-11-05 17:37:17.281 INFO 26133 --- [ main] o.s.b.w.e.u.UndertowServletWebServer : Undertow started on port(s) 8280 (http) with context path '/job'
2018-11-05 17:37:17.330 INFO 26133 --- [ main] c.m.p.j.PosterJobExecutorApp : Started PosterJobExecutorApp in 36.74 seconds (JVM running for 46.201)
2018-11-05 17:37:42.191 INFO 26133 --- [ Thread-6] o.e.j.s.AbstractConnector : Stopped ServerConnector@54e5742a{HTTP/1.1,[http/1.1]}{0.0.0.0:9999}
2018-11-05 17:37:44.731 INFO 26133 --- [ Thread-18] c.x.j.c.t.ExecutorRegistryThread : >>>>>>>>>>> xxl-job registry success, registryParam:RegistryParam{registGroup='EXECUTOR', registryKey='poster-executor', registryValue='192.168.4.181:9999'}, registryResult:ReturnT [code=200, msg=null, content=null]
job-admin日志:
2018-11-05 20:40:10,663 ERROR [pool-3-thread-2] c.x.j.a.core.trigger.XxlJobTrigger [XxlJobTrigger.java : 193] >>>>>>>>>>> xxl-job trigger error, please check if the executor[192.168.4.181:9999] is running.
com.xxl.rpc.util.XxlRpcException: com.xxl.rpc.util.XxlRpcException: xxl-rpc, request timeout at:1541421610663, request:XxlRpcRequest{requestId='91baedc9-c76e-4ef5-929a-7633db5aba57', createMillisTime=1541421600372, accessToken='', className='com.xxl.job.core.biz.ExecutorBiz', methodName='run', parameterTypes=[class com.xxl.job.core.biz.model.TriggerParam], parameters=[TriggerParam{jobId=1, executorHandler='startPresell', executorParams='', executorBlockStrategy='SERIAL_EXECUTION', executorTimeout=0, logId=733234, logDateTim=1541421600351, glueType='BEAN', glueSource='', glueUpdatetime=1539165941000, broadcastIndex=0, broadcastTotal=1}], version='null'}
at com.xxl.rpc.remoting.invoker.reference.XxlRpcReferenceBean$1.invoke(XxlRpcReferenceBean.java:166)
at com.sun.proxy.$Proxy75.run(Unknown Source)
at com.xxl.job.admin.core.trigger.XxlJobTrigger.runExecutor(XxlJobTrigger.java:191)
at com.xxl.job.admin.core.trigger.XxlJobTrigger.processTrigger(XxlJobTrigger.java:142)
at com.xxl.job.admin.core.trigger.XxlJobTrigger.trigger(XxlJobTrigger.java:76)
at com.xxl.job.admin.core.thread.JobTriggerPoolHelper$1.run(JobTriggerPoolHelper.java:35)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
同样的配置,切换回1.9.2版本就可以。