Commit 5899a2a
committed
[Refactor] Deprecate lake tablet_row_nums; derive first-load row counts from tablet_stats
Mark PublishVersionResponse.tablet_row_nums (ordinal 4) as deprecated and stop
populating it. BE now reports first-import per-tablet stats through the newer
tablet_stats field: the publish gate broadens to emit stats for any tablet on
first import (base_version == 1) in addition to every range-distribution tablet,
computed via compute_tablet_stats without delvec I/O on the publish hot path. FE
derives first-load row counts from tablet_stats[*].num_rows via
collectFirstLoadRowCounts, replacing reads of the deprecated map. The
aggregate-publish merge of tablet_row_nums is removed.
For primary-key tablets the first-load row count is now the live-row count
(num_rows - num_dels) rather than the raw rowset sum the deprecated field
reported; this is more accurate and is self-healed by the periodic TabletStatMgr
scan. The field and ordinal are retained ([deprecated = true]) for wire
compatibility during a BE-before-FE rolling upgrade.
Signed-off-by: xiangguangyxg <xiangguangyxg@gmail.com>1 parent bd971dd commit 5899a2a
5 files changed
Lines changed: 101 additions & 32 deletions
File tree
- be
- src/service/service_be
- test/service
- fe/fe-core/src
- main/java/com/starrocks/lake
- test/java/com/starrocks/lake
- gensrc/proto
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
| |||
437 | 442 | | |
438 | 443 | | |
439 | 444 | | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
| 445 | + | |
448 | 446 | | |
449 | | - | |
450 | | - | |
| 447 | + | |
| 448 | + | |
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
| |||
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | 665 | | |
671 | 666 | | |
672 | 667 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6038 | 6038 | | |
6039 | 6039 | | |
6040 | 6040 | | |
6041 | | - | |
6042 | | - | |
| 6041 | + | |
| 6042 | + | |
| 6043 | + | |
6043 | 6044 | | |
6044 | | - | |
6045 | 6045 | | |
6046 | 6046 | | |
6047 | 6047 | | |
| |||
6055 | 6055 | | |
6056 | 6056 | | |
6057 | 6057 | | |
6058 | | - | |
| 6058 | + | |
| 6059 | + | |
| 6060 | + | |
| 6061 | + | |
| 6062 | + | |
| 6063 | + | |
| 6064 | + | |
| 6065 | + | |
| 6066 | + | |
| 6067 | + | |
| 6068 | + | |
| 6069 | + | |
| 6070 | + | |
| 6071 | + | |
| 6072 | + | |
| 6073 | + | |
| 6074 | + | |
| 6075 | + | |
| 6076 | + | |
| 6077 | + | |
| 6078 | + | |
| 6079 | + | |
| 6080 | + | |
| 6081 | + | |
6059 | 6082 | | |
6060 | 6083 | | |
6061 | 6084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
182 | 198 | | |
183 | 199 | | |
184 | 200 | | |
| |||
256 | 272 | | |
257 | 273 | | |
258 | 274 | | |
259 | | - | |
260 | | - | |
| 275 | + | |
| 276 | + | |
261 | 277 | | |
262 | 278 | | |
263 | 279 | | |
| |||
487 | 503 | | |
488 | 504 | | |
489 | 505 | | |
490 | | - | |
491 | | - | |
| 506 | + | |
| 507 | + | |
492 | 508 | | |
493 | 509 | | |
494 | 510 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
95 | 126 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
72 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
0 commit comments