You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/10/22 09:17:51 UTC

[GitHub] [doris] morningman opened a new pull request, #13575: [fix](restore) fix wrong replica allocation after restore

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 [dev@doris.apache.org](mailto:dev@doris.apache.org) 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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #13575: [fix](restore) fix wrong replica allocation after restore

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13575:
URL: https://github.com/apache/doris/pull/13575#issuecomment-1287696834

   PR approved by anyone and no changes requested.


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] hello-stephen commented on pull request #13575: [fix](restore) fix wrong replica allocation after restore

Posted by GitBox <gi...@apache.org>.
hello-stephen commented on PR #13575:
URL: https://github.com/apache/doris/pull/13575#issuecomment-1287698004

   TeamCity pipeline, clickbench performance test result:
    the sum of best hot time: 37.89 seconds
    load time: 549 seconds
    storage size: 17154887244 Bytes
    https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221022095151_clickbench_pr_32725.html


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] github-actions[bot] commented on pull request #13575: [fix](restore) fix wrong replica allocation after restore

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #13575:
URL: https://github.com/apache/doris/pull/13575#issuecomment-1287696813

   PR approved by at least one committer and no changes requested.


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] morningman merged pull request #13575: [fix](restore) fix wrong replica allocation after restore

Posted by GitBox <gi...@apache.org>.
morningman merged PR #13575:
URL: https://github.com/apache/doris/pull/13575


-- 
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: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org