Skip to content

rgw/s3vector: lancedb-rgw-store improvements - #71768

Closed
soumyakoduri wants to merge 2 commits into
ceph:wip-s3vectorfrom
soumyakoduri:wip-skoduri-sal-wrapper-tests
Closed

soumyakoduri wants to merge 2 commits into
ceph:wip-s3vectorfrom
soumyakoduri:wip-skoduri-sal-wrapper-tests

Conversation

@soumyakoduri

Copy link
Copy Markdown
Contributor

This PR addressed below TODOs pending from #70969

  1. Include remaining tests from arrow-rs integration tests and mark them ignore/fail with comment

Included and added missing implementation for below arrow-rs object store integration tests -
- aros_put_get_attributes
- multipart_race_condition
The only two pending which need additional store implementation and hence ignored are
- list_paginated
- multipart

  1. the arrow suite has multipart tests, why are we testing them seperatly? cleanup the other tests which may be duplicate
    These are extra tests and will be redundant/cleaned up when arrow-rs multipart test is supported (above note)

  2. why do we take ownership over the pointer? (wrt etag_out ptr)
    Right. Rust code should not be freeing the memory allocated by C++ SAL APIs. As was done initially, a new API rgw_free_string FFI is added to free the strings returned by SAL.

Signed-off-by: Soumya Koduri [email protected]

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

* handle utf8 decode errors on admin output
* dont run "local" backend in teuthology, since it
  requires radosgw-admin run as ceph or root for
  user data purging
* avoid an extra period commit when disabling sync
  in teuthology. local runs still do it but wait for
  data sync to finish

Signed-off-by: Yuval Lifshitz <[email protected]>
Assisted-by: claude-code:claude-fable-5.1
Assisted-by: claude-code:claude-opus-5
@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

1) Include and add missing implementation for below arrow-rs
 object store integration tests -
 - aros_put_get_attributes
 - multipart_race_condition

The only two pending which need additional store implementation and hence
ignored are
 - list_paginated
 - multipart

2) Add a FFI API (rgw_free_string) to free the strings allocated and returned
by C++ SAL APIs.

3) Also rename rgw_init_multipart to rgw_multipart_init inline with other multipart APIs

Signed-off-by: Soumya Koduri <[email protected]>
del_ret = meta_obj->get_obj_attrs(y, dpp);
if (del_ret < 0) {
ldpp_dout(dpp, 1) << "ERROR: failed to get obj attrs, obj=" << meta_obj
<< " del_ret=" << ret << dendl;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<< " del_ret=" << del_ret << dendl;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

// Skipped arrow-rs integration tests
// ----------------------------------------
// The following tests from the arrow-rs integration suite are not currently
// executed. Each is marked with #[ignore] and includes an explanation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

only 2 are ignored. the rest are not

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done



// Helper function to convert CRgwObjectMeta to rgw::sal::Attrs
static void c_meta_to_attrs(const CRgwObjectMeta* user_attrs, rgw::sal::Attrs& attrs) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why these attributes? are these the attributes needed by the aros test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes these are added solely for the test aros_put_get_attributes


/// Convert object_store Attributes to C-compatible format
/// Returns (CStrings holder, CRgwObjectMeta with pointers into the CStrings)
fn attributes_to_c_meta(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we add a unit test for this function here?

/// Convert C metadata structure to Rust Attributes
///
/// Extracts standard HTTP headers and custom metadata from CRgwObjectMeta
fn c_meta_to_attributes(c_meta: &ffi::CRgwObjectMeta) -> Attributes {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you add a unit test?

if (ret < 0) {
return ret;
}
if (ret == 0) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why do you need this "if"?

return ret;
}
if (ret == 0) {
target_obj->set_attrs(meta_obj->get_attrs());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what about a race between "complete()" and "set_attrs()" ?

target_obj->set_attrs(meta_obj->get_attrs());
}

/* XXX: Do we need cls lock here for racing completions? like done in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we probably need this. and also a test to cover that case

@yuvalif
yuvalif deleted the branch ceph:wip-s3vector September 17, 2026 17:16
@yuvalif yuvalif closed this Sep 17, 2026
@yuvalif

yuvalif commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

this was automatically closed because wip-s3vector was merged to main
please reopen against main

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

this was automatically closed because wip-s3vector was merged to main please reopen against main

All the above comments have been addressed and a new PR is opened against main - #71890

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.

2 participants