Repository navigation
Wip mpu reupload - #37260
Wip mpu reupload#37260mattbenjamin wants to merge 12 commits into
Conversation
|
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. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
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! |
|
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. |
|
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. |
|
un-stahl |
|
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 ; |
34f6e92 to
b9aecfb
Compare
|
@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]>
Signed-off-by: Matt Benjamin <[email protected]>
Signed-off-by: Matt Benjamin <[email protected]>
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]>
Signed-off-by: Matt Benjamin <[email protected]>
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]>
Signed-off-by: Matt Benjamin <[email protected]>
This adds the prefix accumulator vector to RGWUploadPartInfo. Signed-off-by: Matt Benjamin <[email protected]>
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]>
b9aecfb to
7e6a8ad
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@mattbenjamin now that the header reorg PR merged, what's the next step here? |
|
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. |
|
merged in #49709 🎉 |
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox