Skip to content

Wip mpu reupload - #37260

Closed
mattbenjamin wants to merge 12 commits into
ceph:mainfrom
linuxbox2:wip-mpu-reupload
Closed

mattbenjamin wants to merge 12 commits into
ceph:mainfrom
linuxbox2:wip-mpu-reupload

Conversation

@mattbenjamin

Copy link
Copy Markdown
Contributor

Checklist

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

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@stale

stale Bot commented Nov 22, 2020

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale Bot added the stale label Nov 22, 2020
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@stale

stale Bot commented Jul 21, 2021

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@stale stale Bot closed this Jul 21, 2021
@mattbenjamin mattbenjamin reopened this Jul 21, 2021
@stale stale Bot removed the stale label Jul 21, 2021
@stale

stale Bot commented Jan 9, 2022

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@stale stale Bot added the stale label Jan 9, 2022
@djgalloway
djgalloway changed the base branch from master to main July 8, 2022 00:00
@github-actions github-actions Bot removed the stale label Jul 15, 2022
@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Sep 13, 2022
@mattbenjamin

Copy link
Copy Markdown
Contributor Author

un-stahl

@github-actions github-actions Bot removed the stale label Sep 13, 2022
@cbodley

cbodley commented Oct 19, 2022

Copy link
Copy Markdown
Contributor

hi @mattbenjamin, folks from Akamai/Linode joined today's refactoring call to discuss this issue. they'd like to help wherever they can, whether it's design/implementation/testing

would you be willing to type up a quick summary of your design here, and the potential next steps?

do you know if we have s3test cases that can exercise this stuff reliably? if not, maybe they could start writing some?

cc @yima77

@mattbenjamin

mattbenjamin commented Oct 19, 2022 •

Copy link
Copy Markdown
Contributor Author

hi @mattbenjamin, folks from Akamai/Linode joined today's refactoring call to discuss this issue. they'd like to help wherever they can, whether it's design/implementation/testing

would you be willing to type up a quick summary of your design here, and the potential next steps?

do you know if we have s3test cases that can exercise this stuff reliably? if not, maybe they could start writing some?

cc @yima77

Sure, @cbodley ;
I think I have a sound approach to eliminating the issue, and would like to get that part in; things holding me up were kind of dumb--getting the write interface to cls in the write processor was one
I'll see about getting the core commits rebased, and we can then see if @yima77 is up for writing and debugging some of the remaining bits

@mattbenjamin mattbenjamin changed the title [DNM] Wip mpu reupload Wip mpu reupload Nov 7, 2022
@mattbenjamin

mattbenjamin commented Nov 7, 2022 •

Copy link
Copy Markdown
Contributor Author

@cbodley I've asked Josh to add yima77 (Yixin) to the Ceph org; Will add Yixin as a reviewer when possible.

In downstream 4.1 version this change moved rgw_pool, rgw_bucket,
and some related types--but these have already moved on more
recent branches.

Signed-off-by: Matt Benjamin <[email protected]>
Because rgw_compression_types relies on only on primitive and std
types, don't include rgw_common.h from it.

Signed-off-by: Matt Benjamin <[email protected]>
Basic types have the following important properties, governing
where they can be declared and which files can include them:

basic type header file
basic type header files are headers which contain declarations (and frequently definitions) of basic types
a basic type header file is not constrained strictly to contain type declarations, it can also contain other c++ declarations and definitions which support the type declarations it contains, provided they do not violate the requirements for a basic type header file, described below

requirements for rgw_basic_types (and header files which define them)
at a high level, we require that basic types
can be compiled in all radosgw, sal, and cls_rgw contexts
which implies:
include essentially any serializable type above the zipper line
serializable types specific to the RADOS SAL might/should potentially be subject to similar or somewhat similar constraints, but I think are a distinct case
can be composed only from the following material
builtin c++ types and types constructed exclusively from them
standard library, boost, and other, concrete and types constructed as parameterized descendants of these and the previously-defined basic types--which we assert can be operated on and in particular encoded/decoded in any of the above contexts (i.e., radosgw, sal, and cls_rgw)
types referring to not-basic types by address/pointer using ordinary forward declaration, and not, by virtue of this, violating the above rules
in many cases, this permits portable definition in a cpp file not required at link time in some of the above contexts (e.g., cls_rgw), HOWEVER:
strongly prefer to avoid avoid inclusion of non-basic types in basic type declarations altogether
instead, move these to non-basic, composite types and declare these in a context which already contains similar type declarations (e.g., rgw_common.h, a file which includes rgw_common.h, or a file includes from rgw_common.h
required above, such a file does not contain declarations of basic types
example:
RGWZoneParams (rgw_zone.h), which contains members of various basic types, but also derives from RGWSystemMetaObj, which is not basic

suggested rgw conventions for handling ?rgw_basic_types?
declare them in rgw_basic_types.h
unless they are required to be in more complex include graphs, in which case
declare them in a header ?my_foo_types.h? and include ?my_foo_types.h? from ?rgw_basic_types.h? or from an existing basic_types-style header (i.e., following all of these conventions) already directly or indirectly included from rgw_basic_types.h
which shall observe, recursively, the rules described here
in my proposed change generalizing basic types, I have introduced several such files (e.g., rgw_zone_types.h, rgw_placement_types.h, rgw_obj_types.h, &c)
I do not assert that my proposed breakout is complete or final :)
add the following comment to the top of all basic_types header files, after the copyright statement:
/* N.B., this header defines fundamental serialized types.  Do not
 * introduce changes or include files which can only be compiled in
 * radosgw or OSD contexts (e.g., rgw_sal.h, rgw_common.h)
 */
canonize one include order for the _*_basic_types.h headers, based on the order in which rgw_basic_types.h includes them--generalize this order to all of the corresponding *_basic_types.h headers that include any headers from the set, and document that the canonical include order is the one in rgw_basic_types.h:
// XXX consider reordering these:
...

Signed-off-by: Matt Benjamin <[email protected]>
This adds the prefix accumulator vector to RGWUploadPartInfo.

Signed-off-by: Matt Benjamin <[email protected]>
This op stores multipart upload part metadata on part upload,
saving a history of objects stored during prior attempts to
upload the same part, for use in eventual cleanup when the
action completes or aborts.

Signed-off-by: Matt Benjamin <[email protected]>
@mattbenjamin

Copy link
Copy Markdown
Contributor Author

@yuvalif this pr is now layered on #48767, so in fact is just the top 3 commits

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@cbodley

cbodley commented Dec 15, 2022

Copy link
Copy Markdown
Contributor

@mattbenjamin now that the header reorg PR merged, what's the next step here?

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Feb 13, 2023
@ivancich ivancich removed the stale label Feb 13, 2023
@cbodley

cbodley commented Mar 14, 2023

Copy link
Copy Markdown
Contributor

merged in #49709 🎉

@cbodley cbodley closed this Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants