You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unparseable date: "stats-service"
java.text.ParseException: Unparseable date: "stats-service"
at java.base/java.text.DateFormat.parse(DateFormat.java:399)
at com.xxl.job.core.thread.JobLogFileCleanThread$1.run(JobLogFileCleanThread.java:69)
at java.base/java.lang.Thread.run(Thread.java:833)
xxljob在执行清理任务的时候异常
Which version of XXL-JOB do you using?
2.3.0
Expected behavior
期望能够清理日志
Actual behavior
Unparseable date: "stats-service"
java.text.ParseException: Unparseable date: "stats-service"
at java.base/java.text.DateFormat.parse(DateFormat.java:399)
at com.xxl.job.core.thread.JobLogFileCleanThread$1.run(JobLogFileCleanThread.java:69)
at java.base/java.lang.Thread.run(Thread.java:833)
Steps to reproduce the behavior
spring配置
xxl-job 分布式定时任务
xxl:
job:
admin:
addresses: http://...
accessToken:
executor:
appname: ${spring.application.name}
address:
ip:
port: 9999
logpath: logs/xxljob
logretentiondays: 10
按照这样配置,实际上在目录中有两个文件夹(2024-04-07 gluesource)
try {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
logFileCreateDate = simpleDateFormat.parse(childFile.getName());
} catch (ParseException var11) {
JobLogFileCleanThread.logger.error(var11.getMessage(), var11);
}
怀疑是第二个gluesource转为时间类型异常了
Other information
The text was updated successfully, but these errors were encountered: