Skip to content

Conversation

@morningman
Copy link
Contributor

@morningman morningman commented Aug 27, 2020

Proposed changes

This CL refactor the storage medium migration task process in BE.
I did not modify the execution logic. Just extract part of the logic
in the migration task and put it in task_work_pool.

In this way, the migration task is only used to process the migration
from the specified tablet to the specified data dir.

Later, we can use this task to migrate of tablets between different disks. #4476

Types of changes

  • Code refactor (Modify the code structure, format the code, etc...)

Checklist

  • Compiling and unit tests pass locally with my changes

@morningman morningman added the kind/refactor Issues or PRs to refactor code label Aug 27, 2020
@morningman morningman self-assigned this Aug 27, 2020
@morningman morningman force-pushed the migration_task branch 2 times, most recently from caed1bc to ef22bf1 Compare October 9, 2020 08:01
TabletSharedPtr tablet;
DataDir* dest_store;
if (_check_migrate_requset(storage_medium_migrate_req, tablet, &dest_store) != OLAP_SUCCESS) {
status_code = TStatusCode::RUNTIME_ERROR;
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't it print out the reason for the check failure?

Copy link
Contributor

@EmmyMiao87 EmmyMiao87 left a comment

Choose a reason for hiding this comment

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

LGTM

@EmmyMiao87 EmmyMiao87 merged commit a1ae399 into apache:master Nov 12, 2020
morningman pushed a commit that referenced this pull request Jan 16, 2021
…fferent disks (#5101)

Based on PR #4475, this patch add a new feature for single tablet migration between different disks by http.
Co-authored-by: weizuo <weizuo@xiaomi.com>
EmmyMiao87 pushed a commit to EmmyMiao87/incubator-doris that referenced this pull request Jan 26, 2021
…fferent disks (apache#5101)

Based on PR apache#4475, this patch add a new feature for single tablet migration between different disks by http.
Co-authored-by: weizuo <weizuo@xiaomi.com>
levy5307 pushed a commit to levy5307/incubator-doris that referenced this pull request Nov 14, 2022
…fferent disks (apache#5101)

Based on PR apache#4475, this patch add a new feature for single tablet migration between different disks by http.
Co-authored-by: weizuo <weizuo@xiaomi.com>
csun5285 pushed a commit to csun5285/doris that referenced this pull request Sep 23, 2025
…e. (apache#4475)

Co-authored-by: daidai <changyuwei@selectdb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/refactor Issues or PRs to refactor code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants