Skip to content

[fix](MTMV) Refine the process of refreshing data#16006

Merged
morningman merged 3 commits intoapache:masterfrom
adonis0147:mtmv-test
Jan 17, 2023
Merged

[fix](MTMV) Refine the process of refreshing data#16006
morningman merged 3 commits intoapache:masterfrom
adonis0147:mtmv-test

Conversation

@adonis0147
Copy link
Contributor

Proposed changes

  1. Remove some redundant code.
  2. Fix the issue with the state of MTMV task.
  3. Fix the case - test_create_mtmv.

Problem summary

  1. We used a retry policy to re-run the failed MTMV tasks, but we set the state to FAILURE during re-running the tasks. We should do this after all the retry runs fail.
  2. There are some redundant code can be removed.
  3. In the case test_create_mtmv, we created many background tasks to refresh the data. Some task may fail due to the concurrency and cause the test fail. Actually, we only need single one task to verify the functionality.

Checklist(Required)

  1. Does it affect the original behavior:
    • Yes
    • No
    • I don't know
  2. Has unit tests been added:
    • Yes
    • No
    • No Need
  3. Has document been added or modified:
    • Yes
    • No
    • No Need
  4. Does it need to update dependencies:
    • Yes
    • No
  5. 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 by explaining why you chose the solution you did and what alternatives you considered, etc...

@github-actions github-actions bot added area/planner Issues or PRs related to the query planner kind/test labels Jan 17, 2023
@adonis0147 adonis0147 force-pushed the mtmv-test branch 3 times, most recently from 67cb325 to cc82305 Compare January 17, 2023 07:26
@hello-stephen
Copy link
Contributor

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 35.12 seconds
load time: 501 seconds
storage size: 17122526285 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20230117104413_clickbench_pr_82296.html

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 17, 2023
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman morningman merged commit 388d623 into apache:master Jan 17, 2023
@adonis0147 adonis0147 deleted the mtmv-test branch January 30, 2023 03:25
dutyu pushed a commit to dutyu/doris that referenced this pull request Feb 1, 2023
1. Remove some redundant code.
2. Fix the issue with the state of MTMV task.
3. Fix the case - test_create_mtmv.

## Problem summary

1. We used a retry policy to re-run the failed MTMV tasks, but we set the state to `FAILURE` during re-running the tasks.
We should do this after all the retry runs fail.
2. There are some redundant code can be removed.
3. In the case test_create_mtmv, we created many background tasks to refresh the data. Some task may fail due to the concurrency and cause the test fail. Actually, we only need single one task to verify the functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/multi-table-materialized-view area/planner Issues or PRs related to the query planner kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants