Commit 2d07df9
[Enhancement](txn) Add config flag for transaction edit log outside-lock optimization
Add enable_txn_log_outside_lock config (default false) to control whether
transaction edit log writes happen inside or outside the write lock.
When enabled, edit log entries are enqueued (FIFO) inside the write lock and
awaited outside it, preserving ordering via the batch queue while reducing
lock hold time. This resolves the potential out-of-order edit log issue from
the previous outside-lock optimization.
- Add submitEdit() split API to EditLog for enqueue-only writes
- Make EditLogItem public with await() method
- Add enqueueTransactionState/awaitTransactionState helpers
- Update all 8 persist call sites in DatabaseTransactionMgr
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a105828 commit 2d07df9
File tree
3 files changed
+184
-23
lines changed- fe
- fe-common/src/main/java/org/apache/doris/common
- fe-core/src/main/java/org/apache/doris
- persist
- transaction
3 files changed
+184
-23
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
747 | 759 | | |
748 | 760 | | |
749 | 761 | | |
| |||
Lines changed: 65 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
| |||
1534 | 1553 | | |
1535 | 1554 | | |
1536 | 1555 | | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1537 | 1599 | | |
1538 | 1600 | | |
1539 | 1601 | | |
| |||
0 commit comments