Commit d151969
committed
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 7f5ba43 commit d151969
File tree
9 files changed
+187
-47
lines changed- fe/fe-core/src/main/java/org/apache/doris
- alter
- catalog
- clone
- datasource
- mtmv
- persist
- service
- regression-test/suites/cloud_p0
- different_serialize
- partition
9 files changed
+187
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3487 | 3487 | | |
3488 | 3488 | | |
3489 | 3489 | | |
3490 | | - | |
| 3490 | + | |
| 3491 | + | |
3491 | 3492 | | |
3492 | 3493 | | |
3493 | | - | |
| 3494 | + | |
3494 | 3495 | | |
3495 | | - | |
3496 | | - | |
3497 | | - | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
3498 | 3501 | | |
3499 | 3502 | | |
3500 | 3503 | | |
| |||
Lines changed: 49 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
| 715 | + | |
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | | - | |
| 724 | + | |
726 | 725 | | |
727 | 726 | | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
| 727 | + | |
733 | 728 | | |
734 | 729 | | |
735 | 730 | | |
| |||
739 | 734 | | |
740 | 735 | | |
741 | 736 | | |
742 | | - | |
| 737 | + | |
743 | 738 | | |
744 | 739 | | |
745 | 740 | | |
| |||
759 | 754 | | |
760 | 755 | | |
761 | 756 | | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
766 | 762 | | |
767 | 763 | | |
768 | 764 | | |
769 | | - | |
770 | | - | |
| 765 | + | |
| 766 | + | |
771 | 767 | | |
772 | 768 | | |
773 | 769 | | |
| |||
784 | 780 | | |
785 | 781 | | |
786 | 782 | | |
787 | | - | |
| 783 | + | |
788 | 784 | | |
789 | 785 | | |
790 | 786 | | |
791 | 787 | | |
792 | 788 | | |
793 | 789 | | |
794 | 790 | | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
803 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
804 | 828 | | |
805 | 829 | | |
806 | 830 | | |
807 | 831 | | |
808 | | - | |
| 832 | + | |
809 | 833 | | |
810 | 834 | | |
811 | 835 | | |
| |||
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | | - | |
| 1585 | + | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
| |||
1602 | 1602 | | |
1603 | 1603 | | |
1604 | 1604 | | |
1605 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1606 | 1608 | | |
1607 | 1609 | | |
1608 | 1610 | | |
| |||
1631 | 1633 | | |
1632 | 1634 | | |
1633 | 1635 | | |
1634 | | - | |
| 1636 | + | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | 1639 | | |
| |||
1838 | 1840 | | |
1839 | 1841 | | |
1840 | 1842 | | |
1841 | | - | |
| 1843 | + | |
1842 | 1844 | | |
1843 | 1845 | | |
1844 | 1846 | | |
| |||
1896 | 1898 | | |
1897 | 1899 | | |
1898 | 1900 | | |
1899 | | - | |
1900 | | - | |
1901 | | - | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
1905 | 1901 | | |
1906 | 1902 | | |
1907 | 1903 | | |
| |||
1926 | 1922 | | |
1927 | 1923 | | |
1928 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1929 | 1930 | | |
1930 | 1931 | | |
| 1932 | + | |
1931 | 1933 | | |
1932 | 1934 | | |
1933 | | - | |
1934 | 1935 | | |
1935 | 1936 | | |
1936 | 1937 | | |
| |||
1954 | 1955 | | |
1955 | 1956 | | |
1956 | 1957 | | |
1957 | | - | |
| 1958 | + | |
1958 | 1959 | | |
1959 | 1960 | | |
1960 | 1961 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1668 | 1668 | | |
1669 | 1669 | | |
1670 | 1670 | | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1671 | 1684 | | |
| 1685 | + | |
1672 | 1686 | | |
1673 | 1687 | | |
1674 | 1688 | | |
1675 | 1689 | | |
1676 | 1690 | | |
1677 | 1691 | | |
1678 | 1692 | | |
| 1693 | + | |
1679 | 1694 | | |
1680 | 1695 | | |
1681 | 1696 | | |
| |||
1686 | 1701 | | |
1687 | 1702 | | |
1688 | 1703 | | |
| 1704 | + | |
1689 | 1705 | | |
1690 | 1706 | | |
1691 | 1707 | | |
| |||
1704 | 1720 | | |
1705 | 1721 | | |
1706 | 1722 | | |
| 1723 | + | |
1707 | 1724 | | |
1708 | 1725 | | |
1709 | 1726 | | |
| |||
1716 | 1733 | | |
1717 | 1734 | | |
1718 | 1735 | | |
| 1736 | + | |
1719 | 1737 | | |
1720 | 1738 | | |
1721 | 1739 | | |
1722 | 1740 | | |
1723 | 1741 | | |
| 1742 | + | |
1724 | 1743 | | |
1725 | 1744 | | |
1726 | 1745 | | |
| |||
1837 | 1856 | | |
1838 | 1857 | | |
1839 | 1858 | | |
1840 | | - | |
| 1859 | + | |
| 1860 | + | |
1841 | 1861 | | |
1842 | 1862 | | |
1843 | 1863 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3762 | 3762 | | |
3763 | 3763 | | |
3764 | 3764 | | |
3765 | | - | |
| 3765 | + | |
3766 | 3766 | | |
3767 | 3767 | | |
3768 | 3768 | | |
| |||
| 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