[Feature] support binlog<row> read and write (row type) (2/3)#63110
[Feature] support binlog<row> read and write (row type) (2/3)#63110Userwhite wants to merge 10 commits into
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
/review |
|
run buildall |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-DS: Total hot run time: 66541 ms |
TPC-DS: Total hot run time: 71162 ms |
|
run buildall |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE UT Coverage ReportIncrement line coverage |
TPC-DS: Total hot run time: 70442 ms |
TPC-DS: Total hot run time: 57471 ms |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
FE Regression Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
2 similar comments
FE Regression Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
TPC-DS: Total hot run time: 61024 ms |
|
run beut |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 29731 ms |
TPC-DS: Total hot run time: 169763 ms |
FE Regression Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 31563 ms |
TPC-DS: Total hot run time: 170583 ms |
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 31337 ms |
FE UT Coverage ReportIncrement line coverage |
TPC-DS: Total hot run time: 170144 ms |
| def tsoPersistConfig = sql "SHOW FRONTEND CONFIG like '%enable_tso_persist_journal%';" | ||
| try { | ||
| sql "ADMIN SET FRONTEND CONFIG ('enable_tso_persist_journal' = 'true')" | ||
| sql "ADMIN SET FRONTEND CONFIG ('experimental_enable_tso_feature' = 'true')" |
There was a problem hiding this comment.
should move this to regression test config
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
What problem does this PR solve?
Issue Number: close #61956
This PR support write and read path of binlog.
Write Path
delete_bitmapis calculated synchronously.delete_bitmapinside the current Rowset is copied tobinlog_delvec.Write Implementation Details
Allows GroupFlushContext to submit both
DATA_IN_GROUPandBINLOG_IN_GROUPtasks concurrently for the same SharedMemtable.Segment ID allocations for both writers are strictly synchronized during the flush phase.
So
binlog_delveccan resue tablet delete_bitmap(seq update, partial update conflict)Read Path
How to do simple test
CREATE TABLE test_row_binlog_simple ( k1 INT, v1 INT, v2 STRING ) UNIQUE KEY(k1) DISTRIBUTED BY HASH(k1) BUCKETS 1 PROPERTIES ( "replication_num" = "1", "enable_unique_key_merge_on_write" = "true", "binlog.enable" = "true", "binlog.format" = "ROW", "binlog.need_historical_value" = "true" ); INSERT INTO test_row_binlog_simple VALUES (1, 10, '10'), (2, 20, '20'); UPDATE test_row_binlog_simple SET v1 = 11, v2 = '11' WHERE k1 = 1; SELECT __DORIS_BINLOG_LSN__ DIV 18446744073709551616 AS version, __DORIS_BINLOG_LSN__ % 18446744073709551616 AS row_id, __DORIS_BINLOG_OP__ AS op, k1, v1, v2, __BEFORE__v1__, __BEFORE__v2__ FROM binlog("table" = "test_row_binlog_simple") ORDER BY __DORIS_BINLOG_LSN__;Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)