Commit c3af819
1. Thread 1 executed a DROP TABLE operation, followed by a CREATE TABLE
operation, initializing a dynamic partition (Partition A) in memory.
2. Due to an optimization in the cloud, batch partition edit logs were
attempted; however, the edit log for Partition A was not yet
synchronized to the followers.
3. Thread 2 began an INSERT INTO ... OVERWRITE PARTITION (*) operation,
identifying Partition A in memory and writing a replace partition edit
log.
4. In follower, the replay thread attempted to replay the replace
partition edit log but found a dependency on Partition A, which was
absent from memory, resulting in an exception and subsequent
termination.
Fix
```
2025-12-30 16:10:42,774 ERROR (replayer|123) [EditLog.loadJournal():1445] replay Operation Type 210, log id: 1910
java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:906)
at org.apache.doris.catalog.OlapTable.checkPartition(OlapTable.java:2835)
at org.apache.doris.catalog.OlapTable.replaceTempPartitions(OlapTable.java:2799)
at org.apache.doris.catalog.Env.replayReplaceTempPartition(Env.java:6750)
at org.apache.doris.persist.EditLog.loadJournal(EditLog.java:986)
at org.apache.doris.catalog.Env.replayJournal(Env.java:3100)
at org.apache.doris.catalog.Env$4.runOneCycle(Env.java:2862)
at org.apache.doris.common.util.Daemon.run(Daemon.java:119)
2025-12-30 16:10:42,775 INFO (Thread-0|32) [DorisFE.lambda$start$0():159] Received shutdown signal, starting graceful shutdown...
2025-12-30 16:10:42,776 INFO (Thread-0|32) [DorisFE.gracefulShutdown():639] graceful shutdown finished
```
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
None
- Test <!-- At least one of them must be included. -->
- [x] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
1 parent d704481 commit c3af819
File tree
8 files changed
+188
-48
lines changed- fe/fe-core/src/main/java/org/apache/doris
- catalog
- clone
- datasource
- mtmv
- persist
- service
- regression-test/suites/cloud_p0
- different_serialize
- partition
8 files changed
+188
-48
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3489 | 3489 | | |
3490 | 3490 | | |
3491 | 3491 | | |
3492 | | - | |
| 3492 | + | |
| 3493 | + | |
3493 | 3494 | | |
3494 | 3495 | | |
3495 | | - | |
| 3496 | + | |
3496 | 3497 | | |
3497 | | - | |
3498 | | - | |
3499 | | - | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
3500 | 3503 | | |
3501 | 3504 | | |
3502 | 3505 | | |
| |||
Lines changed: 49 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
788 | | - | |
789 | | - | |
| 788 | + | |
790 | 789 | | |
791 | 790 | | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
| 791 | + | |
797 | 792 | | |
798 | 793 | | |
799 | 794 | | |
| |||
804 | 799 | | |
805 | 800 | | |
806 | 801 | | |
807 | | - | |
| 802 | + | |
808 | 803 | | |
809 | 804 | | |
810 | 805 | | |
| |||
824 | 819 | | |
825 | 820 | | |
826 | 821 | | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
831 | 827 | | |
832 | 828 | | |
833 | 829 | | |
834 | | - | |
835 | | - | |
| 830 | + | |
| 831 | + | |
836 | 832 | | |
837 | 833 | | |
838 | 834 | | |
| |||
849 | 845 | | |
850 | 846 | | |
851 | 847 | | |
852 | | - | |
| 848 | + | |
853 | 849 | | |
854 | 850 | | |
855 | 851 | | |
856 | 852 | | |
857 | 853 | | |
858 | 854 | | |
859 | 855 | | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
868 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
869 | 893 | | |
870 | 894 | | |
871 | 895 | | |
872 | 896 | | |
873 | | - | |
| 897 | + | |
874 | 898 | | |
875 | 899 | | |
876 | 900 | | |
| |||
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
| 1361 | + | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | 1364 | | |
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
| 1450 | + | |
1451 | 1451 | | |
1452 | | - | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
1453 | 1455 | | |
1454 | 1456 | | |
1455 | 1457 | | |
| |||
1478 | 1480 | | |
1479 | 1481 | | |
1480 | 1482 | | |
1481 | | - | |
| 1483 | + | |
1482 | 1484 | | |
1483 | 1485 | | |
1484 | 1486 | | |
| |||
1645 | 1647 | | |
1646 | 1648 | | |
1647 | 1649 | | |
1648 | | - | |
| 1650 | + | |
1649 | 1651 | | |
1650 | 1652 | | |
1651 | 1653 | | |
| |||
1701 | 1703 | | |
1702 | 1704 | | |
1703 | 1705 | | |
1704 | | - | |
| 1706 | + | |
1705 | 1707 | | |
1706 | 1708 | | |
1707 | 1709 | | |
| |||
1759 | 1761 | | |
1760 | 1762 | | |
1761 | 1763 | | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
1768 | 1764 | | |
1769 | 1765 | | |
1770 | 1766 | | |
| |||
1790 | 1786 | | |
1791 | 1787 | | |
1792 | 1788 | | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1793 | 1794 | | |
1794 | 1795 | | |
| 1796 | + | |
1795 | 1797 | | |
1796 | 1798 | | |
1797 | | - | |
1798 | 1799 | | |
1799 | 1800 | | |
1800 | 1801 | | |
| |||
1840 | 1841 | | |
1841 | 1842 | | |
1842 | 1843 | | |
1843 | | - | |
| 1844 | + | |
1844 | 1845 | | |
1845 | 1846 | | |
1846 | 1847 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1679 | 1679 | | |
1680 | 1680 | | |
1681 | 1681 | | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1682 | 1695 | | |
| 1696 | + | |
1683 | 1697 | | |
1684 | 1698 | | |
1685 | 1699 | | |
1686 | 1700 | | |
1687 | 1701 | | |
1688 | 1702 | | |
1689 | 1703 | | |
| 1704 | + | |
1690 | 1705 | | |
1691 | 1706 | | |
1692 | 1707 | | |
| |||
1697 | 1712 | | |
1698 | 1713 | | |
1699 | 1714 | | |
| 1715 | + | |
1700 | 1716 | | |
1701 | 1717 | | |
1702 | 1718 | | |
| |||
1715 | 1731 | | |
1716 | 1732 | | |
1717 | 1733 | | |
| 1734 | + | |
1718 | 1735 | | |
1719 | 1736 | | |
1720 | 1737 | | |
| |||
1727 | 1744 | | |
1728 | 1745 | | |
1729 | 1746 | | |
| 1747 | + | |
1730 | 1748 | | |
1731 | 1749 | | |
1732 | 1750 | | |
1733 | 1751 | | |
1734 | 1752 | | |
| 1753 | + | |
1735 | 1754 | | |
1736 | 1755 | | |
1737 | 1756 | | |
| |||
1848 | 1867 | | |
1849 | 1868 | | |
1850 | 1869 | | |
1851 | | - | |
| 1870 | + | |
| 1871 | + | |
1852 | 1872 | | |
1853 | 1873 | | |
1854 | 1874 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3785 | 3785 | | |
3786 | 3786 | | |
3787 | 3787 | | |
3788 | | - | |
| 3788 | + | |
3789 | 3789 | | |
3790 | 3790 | | |
3791 | 3791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments