yujun777 commented on code in PR #69896:
URL: https://github.com/apache/doris/pull/69896#discussion_r4663042224
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/MaterializedIndex.java:
##########
@@ -84,6 +89,12 @@ public enum IndexExtState {
private boolean rowCountReported = false;
+ // Local estimates need no replay. Consecutive partition versions coalesce
into a single range;
+ // a complete periodic report retires the versions it supersedes. Unlike a
last-version check,
+ // this also counts distinct commit responses delivered out of order, e.g.
version 4 before 3.
+ private transient RangeSet<Long> changelogRowCountVersions;
+ private transient long changelogRowCountReportVersion = -1;
+
public MaterializedIndex() {
this.state = IndexState.NORMAL;
Review Comment:
Fixed the stale-report overwrite in 6f1c4ced033. Shared-nothing uses the BE
report's version, and cloud reads the partition version in the same KV
transaction as the tablet row count. FE keeps the applied deltas until a
complete report covers them. That report can still lower the retained count
after TTL cleanup.
The new FE unit test reproduced the overwrite before the fix (expected 10
rows, got 0) and passed afterward. All 107 focused FE tests and 7 Cloud ASAN
tests passed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]