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

fix: add missing return in optimalPartInfo #1100

Merged
merged 1 commit into from
Apr 22, 2019
Merged

Conversation

poornas
Copy link
Contributor

@poornas poornas commented Apr 19, 2019

Add missing return in optimalPartInfo as reported in fixes: #1099

In addition, found that the optimalPartInfo calculation has regressed from using maximal partsize when client did not configure a part size. Essentially, though the default SDK minimum part size is 64Mib, sdk should use a higher part size if possible that fits other multipart constraints for optimal chunking.

@kannappanr
Copy link
Collaborator

Unit test TestPartSize needs to be fixed.

kannappanr
kannappanr previously approved these changes Apr 22, 2019
Copy link
Collaborator

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM

@kannappanr
Copy link
Collaborator

@poornas Please check the Appveyor build failure

- when client has not configured part size,
use optimal part size determined by SDK.
Otherwise honor the client specified part
size

fixes: minio#1099
@poornas
Copy link
Contributor Author

poornas commented Apr 22, 2019

@poornas Please check the Appveyor build failure

fixed @kannappanr

Copy link
Collaborator

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM

@kannappanr kannappanr merged commit a8704b6 into minio:master Apr 22, 2019
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.

Missing return statement in optimalPartInfo?
3 participants