Skip to content

squid: rgw: make incomplete multipart upload part of bucket check efficient - #64421

Merged
batrick merged 1 commit into
ceph:squidfrom
ivancich:wip-65892-squid
Oct 13, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
ivancich:wip-65892-squid

Conversation

@ivancich

@ivancich ivancich commented Jul 9, 2025

Copy link
Copy Markdown
Member

@ivancich
ivancich requested a review from a team as a code owner July 9, 2025 18:59
@ivancich ivancich added this to the squid milestone Jul 9, 2025
@ivancich

Copy link
Copy Markdown
Member Author

jenkins test api

@ivancich

Copy link
Copy Markdown
Member Author

jenkins test make check

@adamemerson

Copy link
Copy Markdown
Contributor

@ivancich This needs to be updated to use the Spawn included with asio, we removed the Spawn submodule.

@ivancich

Copy link
Copy Markdown
Member Author

@adamemerson Running into linking issues locally.

The following all have undefined references:

  • `boost::coroutines::stack_traits::minimum_size()'
  • `boost::coroutines::stack_traits::is_unbounded()'
  • `boost::coroutines::stack_traits::maximum_size()'

Yet when I compare radosgw's link command between squid and main they're virtually the same, both including boost/lib/libboost_context.a .

@adamemerson

Copy link
Copy Markdown
Contributor

@cbodley Could you take a look here?

@anrao19

anrao19 commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

jenkins test api

@anrao19

anrao19 commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@anrao19

anrao19 commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

@ivancich , Can you please try rebase if jenkin check fails?

@ivancich

ivancich commented Jul 23, 2025 •

Copy link
Copy Markdown
Member Author

Trying to figure out why the make check fails. (note: I've made some components to the output bold)

[1653/2253] Linking CXX executable bin/unittest_rgw_reshard_wait

FAILED: bin/unittest_rgw_reshard_wait 
: && /usr/bin/clang++-14 -g -Werror -Wl,--export-dynamic src/test/rgw/CMakeFiles/unittest_rgw_reshard_wait.dir/test_rgw_reshard_wait.cc.o -o bin/unittest_rgw_reshard_wait  -Wl,-rpath,/opt/ceph/lib/x86_64-linux-gnu:/home/jenkins-build/build/workspace/ceph-pull-requests/build/lib  lib/libgmock_maind.a  lib/libgmockd.a  lib/libgtestd.a  -ldl  lib/librgw_a.a  lib/libamqp_mock.a  lib/libkafka_stub.a  lib/librgw_common.a  lib/libdbstore.a  lib/libdbstore_lib.a  lib/libsqlite_db.a  lib/librgw_common.a  lib/libdbstore.a  lib/libdbstore_lib.a  lib/libsqlite_db.a  /opt/ceph/lib/x86_64-linux-gnu/libboost_filesystem.so.1.82.0  /opt/ceph/lib/x86_64-linux-gnu/libboost_atomic.so.1.82.0  lib/libglobal.a  src/arrow/lib/libparquet.a  src/arrow/lib/libarrow.a  -lthrift  /usr/lib/x86_64-linux-gnu/liblz4.so  /usr/lib/x86_64-linux-gnu/libsnappy.so  /usr/lib/x86_64-linux-gnu/libz.so  /usr/lib/x86_64-linux-gnu/liboath.so  lib/libcls_2pc_queue_client.a  lib/libcls_cmpomap_client.a  lib/libcls_log_client.a  lib/libcls_otp_client.a  lib/libcls_refcount_client.a  lib/libcls_rgw_client.a  lib/libcls_rgw_gc_client.a  lib/libcls_timeindex_client.a  lib/libcls_user_client.a  lib/libcls_version_client.a  lib/librados.so.2.0.0  lib/liblibneorados.a  /usr/lib/x86_64-linux-gnu/librt.a  lib/libcls_lock_client.a  lib/libosdc.a  lib/libceph-common.so.2  -lresolv  lib/libjson_spirit.a  lib/libcommon_utf8.a  lib/liberasure_code.a  lib/libextblkdev.a  -lcap  /opt/ceph/lib/x86_64-linux-gnu/libboost_thread.so.1.82.0  /opt/ceph/lib/x86_64-linux-gnu/libboost_system.so.1.82.0  /opt/ceph/lib/x86_64-linux-gnu/libboost_random.so.1.82.0  /opt/ceph/lib/x86_64-linux-gnu/libboost_program_options.so.1.82.0  /opt/ceph/lib/x86_64-linux-gnu/libboost_date_time.so.1.82.0  /opt/ceph/lib/x86_64-linux-gnu/libboost_iostreams.so.1.82.0  /usr/lib/x86_64-linux-gnu/libblkid.so  /usr/lib/x86_64-linux-gnu/libudev.so  /usr/lib/x86_64-linux-gnu/libibverbs.so  /usr/lib/x86_64-linux-gnu/librdmacm.so  -lrt  /usr/lib/x86_64-linux-gnu/libicuuc.so  -ldl  lib/libdmclock.a  /usr/lib/x86_64-linux-gnu/libexpat.so  /usr/lib/x86_64-linux-gnu/liblmdb.so  /usr/lib/x86_64-linux-gnu/liblua5.3.so  -lm  lib/libfmtd.a  /usr/lib/x86_64-linux-gnu/libssl.so  /usr/lib/x86_64-linux-gnu/libcrypto.so  lib/libcpp_redis.a  lib/libtacopie.a  /usr/lib/x86_64-linux-gnu/librdkafka.so  /usr/lib/x86_64-linux-gnu/librabbitmq.so  /usr/lib/x86_64-linux-gnu/libldap.so  /usr/lib/x86_64-linux-gnu/liblber.so  -lpthread  /usr/lib/x86_64-linux-gnu/libcurl.so  src/opentelemetry-cpp/sdk/src/trace/libopentelemetry_trace.a  src/opentelemetry-cpp/sdk/src/resource/libopentelemetry_resources.a  src/opentelemetry-cpp/sdk/src/common/libopentelemetry_common.a  src/opentelemetry-cpp/exporters/jaeger/libopentelemetry_exporter_jaeger_trace.a  src/opentelemetry-cpp/ext/src/http/client/curl/libopentelemetry_http_client_curl.a  /usr/lib/x86_64-linux-gnu/libthrift.so  -lsqlite3 

/opt/ceph/lib/x86_64-linux-gnu/libboost_context.so.1.82.0

   -Wl,--as-needed -latomic && :
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
`lib/librgw_common.a(rgw_bucket.cc.o): in function `boost::coroutines::detail::pull_coroutine_context::pull_coroutine_context<boost::coroutines::detail::pull_coroutine_object<boost::coroutines::push_coroutine<void>, void, boost::asio::detail::spawned_coroutine_thread::entry_point<boost::asio::detail::old_spawn_entry_point<boost::asio::strand<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0ul> >, RGWBucket::check_bad_index_multipart(rgw::sal::RadosStore*, RGWBucketAdminOpState&, RGWFormatterFlusher&, DoutPrefixProvider const*, optional_yield, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)::$_7, void (*)()> >, boost::coroutines::basic_standard_stack_allocator<boost::coroutines::stack_traits> > >(boost::coroutines::detail::preallocated const&, boost::coroutines::detail::pull_coroutine_object<boost::coroutines::push_coroutine<void>, void, boost::asio::detail::spawned_coroutine_thread::entry_point<boost::asio::detail::old_spawn_entry_point<boost::asio::strand<boost::asio::io_context::basic_executor_type<std::allocator<void>, 0ul> >, RGWBucket::check_bad_index_multipart(rgw::sal::RadosStore*, RGWBucketAdminOpState&, RGWFormatterFlusher&, DoutPrefixProvider const*, optional_yield, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)::$_7, void (*)()> >, boost::coroutines::basic_standard_stack_allocator<boost::coroutines::stack_traits> >*)':`

rgw_bucket.cc:(.text+0x2526d): undefined reference to `boost::coroutines::detail::coroutine_context::coroutine_context()'

@cbodley @adamemerson -- does anything jump out to either of you?

@anrao19

anrao19 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

jenkins test api

@anrao19

anrao19 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check

@ivancich

ivancich commented Aug 5, 2025

Copy link
Copy Markdown
Member Author

@anrao19 More requests are not going to help. There's a build issue that I haven't been able to figure out yet.

@adamemerson

Copy link
Copy Markdown
Contributor

This has a linking issue related to the spawn submodule, removing needs-qa label.

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@adamemerson adamemerson self-assigned this Jul 25, 2026
@adamemerson adamemerson removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 19, 2026
@adamemerson adamemerson removed their assignment Aug 19, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 19, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 19, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@adamemerson adamemerson added needs-qa releng-audit-fail Release engineering: failed backport verification audit. and removed releng-audit-override labels Aug 19, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 19, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #64421 SOURCE PR SOURCE STATUS
24c2d57 rgw: make incomplete multipart upload part of bucket check efficient PR #57083 ebe9893 rgw: make incomplete multipart upload part of bucket check efficient

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 24c2d57 (cherry-pick of ebe9893)

Affected File(s)

Range Diff

Click to expand
--- Original (ebe98934)
+++ Backport (24c2d57e)
@@ -14,3 +14,12 @@
 worst cases.
 
 Signed-off-by: J. Eric Ivancich <[email protected]>
+(cherry picked from commit ebe98934cd69a32abb3ddafc1fa94b40dfa6844c)
+
+Conflicts:
+	src/rgw/CMakeLists.txt
+ - Link `rgw_common` with `Boost::coroutine`.
+	src/rgw/driver/rados/rgw_bucket.cc
+ - Use `boost::asio::spawn` instead of `spawn::spawn`.
+
+Signed-off-by: Adam C. Emerson <[email protected]>

================================================================================
RANGE DIFF
================================================================================

1:  ebe98934cd6 ! 1:  24c2d57e1b8 rgw: make incomplete multipart upload part of bucket check efficient
    @@ Commit message
         worst cases.
     
         Signed-off-by: J. Eric Ivancich <[email protected]>
    +    (cherry picked from commit ebe98934cd69a32abb3ddafc1fa94b40dfa6844c)
    +
    +    Conflicts:
    +            src/rgw/CMakeLists.txt
    +     - Link `rgw_common` with `Boost::coroutine`.
    +            src/rgw/driver/rados/rgw_bucket.cc
    +     - Use `boost::asio::spawn` instead of `spawn::spawn`.
    +
    +    Signed-off-by: Adam C. Emerson <[email protected]>
    +
    + ## src/rgw/CMakeLists.txt ##
    +@@ src/rgw/CMakeLists.txt: target_link_libraries(rgw_common
    +   PUBLIC
    +     ${LUA_LIBRARIES}
    +     RapidJSON::RapidJSON
    ++    Boost::coroutine
    +     Boost::context
    +     ${FMT_LIB}
    +     OpenSSL::SSL)
     
      ## src/rgw/driver/rados/rgw_bucket.cc ##
    +@@
    + // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
    + // vim: ts=8 sw=2 smarttab ft=cpp
    + 
    ++#include <boost/asio/spawn.hpp>
    ++
    + #include "include/function2.hpp"
    + #include "rgw_acl_s3.h"
    + #include "rgw_tag_s3.h"
     @@ src/rgw/driver/rados/rgw_bucket.cc: static void parse_bucket(const string& bucket,
        }
      }
    @@ src/rgw/driver/rados/rgw_bucket.cc: static void dump_index_check(map<RGWObjCateg
     +  const int max_aio = std::max(1, op_state.get_max_aio());
     +  int any_error = 0; // first error encountered if any
     +  for (int i = 0; i < max_aio; i++) {
    -+    spawn::spawn(context, [&](spawn::yield_context yield) {
    ++    boost::asio::spawn(context, [&](boost::asio::yield_context yield) {
     +      while (true) {
     +        const int shard = next_shard++;
     +        if (shard >= num_shards) {
     +          return;
     +        }
     +
    -+        optional_yield y(context, yield);
    ++        optional_yield y(yield);
     +
     +        int r = ::check_bad_index_multipart(rados_store, &*bucket, dpp,
     +					    op_state, flusher, shard, y);

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Aug 19, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@adamemerson

Copy link
Copy Markdown
Contributor

jenkins test make check

@anrao19

anrao19 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to squid integration testing by anuchaithra started 2026-08-20-07:39.

pr testing completed and approved by @ivancich , more details in : https://tracker.ceph.com/issues/79645
@ivancich , if no further testing is needed then this pr can be merged

@adamemerson adamemerson added the needs-merge QA-approved, awaiting merge window label Sep 24, 2026
@batrick
batrick merged commit 250bcb1 into ceph:squid Oct 13, 2026
14 of 16 checks passed
@batrick batrick modified the milestones: squid, v19.2.8 Oct 13, 2026
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.

5 participants