CalvinKirs opened a new pull request, #30779:
URL: https://github.com/apache/doris/pull/30779

   ## What happend
   ```log
             CREATE JOB insert_recovery_test_base_insert_job  ON SCHEDULE at 
current_timestamp   comment 'test for test&68686781jbjbhj//ncsa' DO insert into 
t_test_BASE_inSert_job  values  ('2023-07-19', sleep(10000), 1001);
        ) process failed.
   org.apache.doris.common.DdlException: errCode = 2, detailMessage = 
startTimeMs cannot be less than current time
        at org.apache.doris.qe.DdlExecutor.execute(DdlExecutor.java:195) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.qe.StmtExecutor.handleDdlStmt(StmtExecutor.java:2466) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.qe.StmtExecutor.executeByLegacy(StmtExecutor.java:816) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:514) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.qe.StmtExecutor.execute(StmtExecutor.java:462) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:245) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:166)
 ~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:193)
 ~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:246)
 ~[doris-fe.jar:1.2-SNAPSHOT]
        at 
org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
~[?:1.8.0_131]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
~[?:1.8.0_131]
   ```
   ## Proposed changes
   
   The execution time of the job that is executed immediately will be set to 
the current time, but we will compare it with the current time after assigning 
it, so it will cause a parameter check error.
   
   ## Test
   add UT
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to