morningman opened a new pull request, #13575:
URL: https://github.com/apache/doris/pull/13575
# Proposed changes
Issue Number: close #xxx
## Problem summary
How to reproduce:
1. create a table with replica allocation, eg:
```
"replication_allocation"="tag.location.group_01:1,
tag.location.group_02:1, tag.location.group_03:1"
```
2. Backup this table
3. Restore this table with specific replication allocation, eg:
`"replication_allocation" = "tag.location.default: 3"`
4. After restore, executing `show create table xxx`, you will be the
`replication_allocation` is still:
```
"replication_allocation"="tag.location.group_01:1,
tag.location.group_02:1, tag.location.group_03:1"
```
Not what we expected
5. But if you execute `show partitions from xxx`, the replication allocation
of each partition is what we expected:
```
"replication_allocation" = "tag.location.default: 3"
```
This is because when doing restore job, we forget to set the "default"
replica allocation property of the table.
And the result of `show create table` is got from "default" replica
allocation property, not from the real replica property of each partition
## Checklist(Required)
1. Does it affect the original behavior:
- [ ] Yes
- [ ] No
- [ ] I don't know
7. Has unit tests been added:
- [ ] Yes
- [ ] No
- [ ] No Need
8. Has document been added or modified:
- [ ] Yes
- [ ] No
- [ ] No Need
9. Does it need to update dependencies:
- [ ] Yes
- [ ] No
10. Are there any changes that cannot be rolled back:
- [ ] Yes (If Yes, please explain WHY)
- [ ] No
## 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]