Uh oh!
There was an error while loading. Please reload this page.
[fix](routine-load) add lock to avoid editlog out of order when concurrent update job - #31095
Conversation
doris-robot
commented
Feb 19, 2024
Thank you for your contribution to Apache Doris. |
sollhui
commented
Feb 19, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
sollhui
commented
Feb 19, 2024
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
sollhui
commented
Feb 19, 2024
run buildall |
PR approved by at least one committer and no changes requested. |
BitoAgent
commented
Feb 20, 2024
PR Run Status
PR Analysis
PR Feedback
Code feedbackfile: fe/fe-core/src/main/java/org/apache/doris/load/routineload/RoutineLoadManager.java
|
Kal1sha
commented
Jul 11, 2026
2026-07-10 14:57:23,033 INFO (stateListener|15) [EditLog.loadJournal():379] Begin to unprotect drop table: internal.1771306616047.stg_simreg Was this fixed in later Doris Versions after 3.0.8? Or what other methods can we use to get our FEs running? |
Bug
When replay journal, FE meets NullPointerException and crash.
Why this happened
It may cause the editLog out of order in the following scenarios:
thread A: create job and record job meta
thread B: change job state and persist in editlog according to meta
thread A: persist in editlog
which will cause the null pointer exception when replaying editLog
How to solve this problem in this pr
Use the lock to make sure the record meta in memory and write editlog is atomicity, when pausing or stopping the job, these two states must be completed simultaneously when the job is visible.