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

   ## Proposed changes
   
   ```
   [RoutineLoadJob.afterCommitted():1032] after committed failed
   java.util.NoSuchElementException: No value present
           at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_382]
           at 
org.apache.doris.load.routineload.RoutineLoadJob.afterCommitted(RoutineLoadJob.java:1025)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.transaction.CloudGlobalTransactionMgr.commitTransaction(CloudGlobalTransactionMgr.java:346)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.transaction.CloudGlobalTransactionMgr.commitTransaction(CloudGlobalTransactionMgr.java:253)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.transaction.CloudGlobalTransactionMgr.commitAndPublishTransaction(CloudGlobalTransactionMgr.java:595)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.service.FrontendServiceImpl.loadTxnCommitImpl(FrontendServiceImpl.java:1670)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.service.FrontendServiceImpl.loadTxnCommit(FrontendServiceImpl.java:1606)
 ~[doris-fe.jar:1.2-SNAPSHOT]
           at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source) 
~[?:?]
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_382]
           at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_382]
           at 
org.apache.doris.service.FeServer.lambda$start$0(FeServer.java:59) 
~[doris-fe.jar:1.2-SNAPSHOT]
           at com.sun.proxy.$Proxy47.loadTxnCommit(Unknown Source) ~[?:?]
           at 
org.apache.doris.thrift.FrontendService$Processor$loadTxnCommit.getResult(FrontendService.java:3382)
 ~[fe-common-1.2-SNAPSHOT.jar:1.2-SNAPSHOT]
           at 
org.apache.doris.thrift.FrontendService$Processor$loadTxnCommit.getResult(FrontendService.java:3362)
 ~[fe-common-1.2-SNAPSHOT.jar:1.2-SNAPSHOT]
           at 
org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38) 
~[libthrift-0.16.0.jar:0.16.0]
           at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38) 
~[libthrift-0.16.0.jar:0.16.0]
           at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:250)
 ~[libthrift-0.16.0.jar:0.16.0]
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
~[?:1.8.0_382]
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
~[?:1.8.0_382]
           at java.lang.Thread.run(Thread.java:750) ~[?:1.8.0_382]
   2024-02-20 17:42:26,964 INFO (thrift-server-pool-10557|998413)
   ```
   
   The bug happened in this case:
   thread A: commit transaction
   thread B: paused job and clear list
   thread A: find routineLoadTask throw exception
   
   <!--Describe your changes.-->
   
   ## 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