Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refact(migration): update volume migration to run in parallel #52

Merged
merged 3 commits into from
Sep 22, 2020

Conversation

shubham14bajpai
Copy link
Contributor

Signed-off-by: shubham [email protected]

This PR updates the volume migration code to update the SC by only one job when multiple jobs running in parallel.

Local test performed:
Tested by launching 3 migration jobs in parallel and the job failure did not occur. Tried the same test 5 times and did not face the issue.

 This PR updates the volume migration code to update the SC
 by only one job when multiple jobs running in parallel.

Signed-off-by: shubham <[email protected]>
Copy link

@mittachaitu mittachaitu left a comment

Choose a reason for hiding this comment

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

Provided few comments

pkg/migrate/cstor/volume.go Show resolved Hide resolved
pkg/migrate/cstor/volume.go Outdated Show resolved Hide resolved
pkg/migrate/cstor/volume.go Show resolved Hide resolved
pkg/migrate/cstor/volume.go Outdated Show resolved Hide resolved
handles error case in isSCMigrationRequired func

Signed-off-by: shubham <[email protected]>
Copy link

@mittachaitu mittachaitu left a comment

Choose a reason for hiding this comment

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

changes are good

}
return false, err
}
if err == nil {

Choose a reason for hiding this comment

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

nit: No need of this if block

Copy link

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

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

lgtm

@prateekpandey14 prateekpandey14 merged commit 2eb9a3d into openebs-archive:master Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants