任务日志主键调整为long,防止海量日志情况下数据溢出;

master
xuxueli 5 years ago
parent 02f65c8c6c
commit 1a274e72ef
  1. 2
      xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobLogController.java
  2. 2
      xxl-job-core/src/main/java/com/xxl/job/core/biz/model/HandleCallbackParam.java
  3. 2
      xxl-job-core/src/test/java/com/xxl/job/core/biz/impl/ExecutorBizImplTest.java

@ -134,7 +134,7 @@ public class JobLogController {
@RequestMapping("/logDetailCat")
@ResponseBody
public ReturnT<LogResult> logDetailCat(String executorAddress, long triggerTime, int logId, int fromLineNum){
public ReturnT<LogResult> logDetailCat(String executorAddress, long triggerTime, long logId, int fromLineNum){
try {
ExecutorBiz executorBiz = XxlJobScheduler.getExecutorBiz(executorAddress);
ReturnT<LogResult> logResult = executorBiz.log(triggerTime, logId, fromLineNum);

@ -24,7 +24,7 @@ public class HandleCallbackParam implements Serializable {
return logId;
}
public void setLogId(int logId) {
public void setLogId(long logId) {
this.logId = logId;
}

@ -109,7 +109,7 @@ public class ExecutorBizImplTest {
@Test
public void log(){
final long logDateTim = 0L;
final int logId = 0;
final long logId = 0;
final int fromLineNum = 0;
// Act

Loading…
Cancel
Save