xy720 opened a new pull request, #25728:
URL: https://github.com/apache/doris/pull/25728
## Proposed changes
In version 1.2, We have found a lot of tablets with replica_id which is 0 in
its tablet meta, just like:
```
{
"table_id": 4882109,
"partition_id": 4882108,
"tablet_id": 6701853,
"schema_hash": 2015010729,
"shard_id": 4,
"creation_time": 1688004194,
"cumulative_layer_point": -1,
"tablet_state": "PB_RUNNING",
"schema": {
"keys_type": "UNIQUE_KEYS",
"column": [
...
],
"num_short_key_columns": 1,
"num_rows_per_row_block": 1024,
"compress_kind": "COMPRESS_LZ4",
"next_column_unique_id": 87,
"is_in_memory": false,
"delete_sign_idx": 86,
"sequence_col_idx": -1,
"sort_type": "LEXICAL",
"sort_col_num": 0,
"compression_type": "LZ4F",
"schema_version": 0,
"disable_auto_compaction": false,
"version_col_idx": -1
},
"rs_metas": [
...
],
"replica_id": 0,
"storage_policy": "",
"enable_unique_key_merge_on_write": false
}
```
And I found that all these tablets clone from other backends.
Here is why:
In #6814, we use constructor `TabletMeta::TabletMeta(const TabletMeta& b)`
in `revise_tablet_meta` method.
And in #9971, we introduce `replica_id` into tablet meta, but we forgot to
update `TabletMeta::TabletMeta(const TabletMeta& b)` to set `replica_id`
So clone task which call `revise_tablet_meta` may cause `replica_id` in
tablet meta to 0.
<!--Describe your changes.-->
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
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]