Repository navigation
rgw/s3vector: lancedb-rgw-store improvements - #71768
soumyakoduri wants to merge 2 commits into
Conversation
* 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
|
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]>
915e1ed to
f49cfe5
Compare
| 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; |
There was a problem hiding this comment.
| << " del_ret=" << del_ret << dendl; |
| // 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. |
There was a problem hiding this comment.
only 2 are ignored. the rest are not
|
|
||
|
|
||
| // Helper function to convert CRgwObjectMeta to rgw::sal::Attrs | ||
| static void c_meta_to_attrs(const CRgwObjectMeta* user_attrs, rgw::sal::Attrs& attrs) { |
There was a problem hiding this comment.
why these attributes? are these the attributes needed by the aros test?
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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 { |
| if (ret < 0) { | ||
| return ret; | ||
| } | ||
| if (ret == 0) { |
There was a problem hiding this comment.
why do you need this "if"?
| return ret; | ||
| } | ||
| if (ret == 0) { | ||
| target_obj->set_attrs(meta_obj->get_attrs()); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
we probably need this. and also a test to cover that case
ea5d4ff to
2359632
Compare
|
this was automatically closed because |
All the above comments have been addressed and a new PR is opened against main - #71890 |
This PR addressed below TODOs pending from #70969
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
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)
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_stringFFI is added to free the strings returned by SAL.Signed-off-by: Soumya Koduri [email protected]
Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.