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

rgw: Replace COMPLETE_MULTIPART_MAX_LEN with rgw_max_put_param_size #26070

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

iliul
Copy link
Contributor

@iliul iliul commented Jan 22, 2019

Replace COMPLETE_MULTIPART_MAX_LEN with configurable rgw_max_put_param_size

Fixes: http://tracker.ceph.com/issues/38002

Signed-off-by: Lei Liu liul.stone@gmail.com

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

@iliul
Copy link
Contributor Author

iliul commented Jan 29, 2019

@cbodley PTAL

#define COMPLETE_MULTIPART_MAX_LEN (1024 * 1024) /* api defines max 10,000 parts, this should be enough */
std::tie(op_ret, data) = rgw_rest_read_all_input(s, COMPLETE_MULTIPART_MAX_LEN);
const auto max_size = s->cct->_conf->rgw_max_put_param_size;
std::tie(op_ret, data) = rgw_rest_read_all_input(s, max_size, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

ok. 1M is also the default for rgw_max_put_param_size, but it does make sense to allow configuration

but why change allow_chunked to false? especially when you expect large requests?

Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

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

thanks!

@theanalyst
Copy link
Member

Probably a comment in the options.cc will also help that this param controls the final complete multipart max len as well

@ivancich ivancich added the wip-eric-testing-1 for ivancich testing label Mar 22, 2019
ivancich added a commit to ceph/ceph-ci that referenced this pull request Mar 22, 2019
Merge branch 'fix-bug-38002' of https://github.com/iliul/ceph into wip-eric-testing-1
@ivancich ivancich merged commit b7608fe into ceph:master Mar 25, 2019
@ivancich ivancich removed needs-qa wip-eric-testing-1 for ivancich testing labels Mar 25, 2019
@iliul iliul deleted the fix-bug-38002 branch March 26, 2019 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants