StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
9.03k stars 1.82k forks source link

[BugFix] Fix random table broker load fails when table has schema change #53041

Open sevev opened 2 days ago

sevev commented 2 days ago

Why I'm doing:

If an add_partition operation is executed during the ALTER process, the ALTER operation will be canceled first. Therefore, the latest indexes will not include shadow indexes. but the schema's index may still contain shadow indexes, so the index check will fail and ingestion task will failed. [1] [2]

What I'm doing:

Skip the shadow index in the index check.

Fixes https://github.com/StarRocks/StarRocksTest/issues/8833

What type of PR is this:

Does this PR entail a change in behavior?

If yes, please specify the type of change:

Checklist:

Bugfix cherry-pick branch check:

sonarcloud[bot] commented 1 day ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

github-actions[bot] commented 1 day ago

[BE Incremental Coverage Report]

:x: fail : 5 / 20 (25.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
:large_blue_circle: be/src/exec/tablet_info.h 0 1 00.00% [85]
:large_blue_circle: be/src/exec/tablet_info.cpp 5 19 26.32% [135, 199, 200, 201, 494, 497, 498, 511, 512, 513, 514, 516, 520, 524]
github-actions[bot] commented 22 hours ago

[Java-Extensions Incremental Coverage Report]

:white_check_mark: pass : 0 / 0 (0%)

github-actions[bot] commented 22 hours ago

[FE Incremental Coverage Report]

:white_check_mark: pass : 2 / 2 (100.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
:large_blue_circle: com/starrocks/planner/OlapTableSink.java 2 2 100.00% []