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

   ### What happened
   
   When executing an export job, when the tablet version is inconsistent, the 
task execution fails, but an NPE exception occurs.
   
   ```
   
   23-10-24 13:35:03,983 WARN (exporting-pool--5|1008623) 
[ExportExportingTask.lambda$exec$0():143] Tablet 241755 has changed version, 
old version = 468061, now version = 468063
   2023-10-24 13:35:03,984 ERROR (export-exporting-job-pool-0|523471) 
[MasterTask.run():33] task exec error 
   java.lang.NullPointerException: null
        at 
org.apache.doris.task.ExportExportingTask.exec(ExportExportingTask.java:209) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at org.apache.doris.task.MasterTask.run(MasterTask.java:31) 
~[doris-fe.jar:1.2-SNAPSHOT]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
~[?:1.8.0_131]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
~[?:1.8.0_131]
        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]
        at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_131]
   ```
   
   When the tablet version is inconsistent, an exception is thrown directly, so 
the second step will not be executed. At this time, the task error is expected, 
so this error will only be reported when the execution fails. We need to deal 
with NPE.
   
   
   
![image](https://github.com/apache/doris/assets/16631152/92738978-1abf-4521-8923-553931d227ee)
   


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