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

pull/10/head
xuxueli 5 years ago
parent 02f65c8c6c
commit 1a274e72ef

@ -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