xy720 opened a new pull request, #57074:
URL: https://github.com/apache/doris/pull/57074
### What problem does this PR solve?
When doing restore with the config restore_reset_index_id is set to true,
the index id is not refresh in tablet schema and rowset schema.
Then the schema saved by create tablet request and the schema saved by
commit restore will be different.
This will cause a Fatal error in meta service:
```
W20251010 19:23:27.299336 5752 meta_service_schema.cpp:92] existed index:
index_id: 1760001798354
index_name: "idx_ngrambf"
index_type: NGRAM_BF
col_unique_id: 2
properties {
key: "bf_size"
value: "256"
}
properties {
key: "gram_size"
value: "3"
}
to save index: index_id: 1741962429779
index_name: "idx_ngrambf"
index_type: NGRAM_BF
col_unique_id: 2
properties {
key: "bf_size"
value: "256"
}
properties {
key: "gram_size"
value: "3"
}
properties {
key: "lower_case"
value: "true"
}
index_suffix_name: ""
F20251010 19:23:27.299504 5752 meta_service_schema.cpp:118] Check failed:
[&] { ValueBuf buf; auto err = cloud::blob_get(txn, schema_key, &buf); if (err
!= TxnErrorCode::TXN_OK) { google::LogMessage(
"/data/home/lambxu/work/git/doris-master/doris/cloud/src/meta-service/meta_service_schema.cpp",
109, google::GLOG_WARNING).stream() << "failed to get schema, err=" << err;
return false; } doris::TabletSchemaCloudPB saved_schema; if
(!buf.to_pb(&saved_schema)) { google::LogMessage(
"/data/home/lambxu/work/git/doris-master/doris/cloud/src/meta-service/meta_service_schema.cpp",
114, google::GLOG_WARNING).stream() << "failed to parse schema value"; return
false; } return check_tablet_schema(schema, saved_schema); }()
01106d657461000110353131313132000110736368656d6100011200000199c84830ce120000000000000000
```
<img width="4097" height="1306" alt="Clipboard_Screenshot_1760632439"
src="https://github.com/user-attachments/assets/1f08e9d6-5247-4c19-8843-7d3a0e9ad29c"
/>
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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]