Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group metadata doesn't get serialized #3147

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Conversation

robertbindar
Copy link
Contributor

@robertbindar robertbindar commented May 9, 2022

As @snagles reported, the group metadata seems to be written correctly, but it's empty when you try to read it.
I managed to reproduce it locally by opening a TileDB Cloud group, then created a test for it by serializing-deserializing a group with metadata locally.
The serialization code is calling Group::metadata() to get the md object, but the Metadata content is not brought up from disk, so the group looks like it has no metadata. Group::load_metadata needs to be called to make sure we serialize a synced version of Metadata.


TYPE: BUG
DESC: Group metadata doesn't get serialized

@robertbindar robertbindar requested review from Shelnutt2 and ihnorton May 9, 2022 11:07
tiledb/sm/group/group.cc Outdated Show resolved Hide resolved
tiledb/sm/serialization/group.cc Outdated Show resolved Hide resolved
@ihnorton
Copy link
Member

I believe Cloud team has worked around this issue for now, converting to draft pending further discussion with @Shelnutt2.

@ihnorton ihnorton marked this pull request as draft May 13, 2022 19:30
@robertbindar robertbindar force-pushed the rbin/group_serialize_bug branch from e871744 to d8f2293 Compare October 25, 2023 12:35
@robertbindar robertbindar changed the base branch from release-2.8 to dev October 25, 2023 12:35
@robertbindar robertbindar marked this pull request as ready for review October 25, 2023 12:35
@KiterLuc KiterLuc closed this Oct 30, 2023
@KiterLuc KiterLuc reopened this Oct 30, 2023
test/src/unit-capi-group.cc Outdated Show resolved Hide resolved
test/src/unit-capi-group.cc Outdated Show resolved Hide resolved
@KiterLuc KiterLuc merged commit 71a2cc4 into dev Oct 31, 2023
54 checks passed
@KiterLuc KiterLuc deleted the rbin/group_serialize_bug branch October 31, 2023 10:39
github-actions bot pushed a commit that referenced this pull request Oct 31, 2023
As @snagles reported, the group metadata seems to be written correctly,
but it's empty when you try to read it.
I managed to reproduce it locally by opening a TileDB Cloud group, then
created a test for it by serializing-deserializing a group with metadata
locally.
The serialization code is calling `Group::metadata()` to get the md
object, but the `Metadata` content is not brought up from disk, so the
group looks like it has no metadata. `Group::load_metadata` needs to be
called to make sure we serialize a synced version of `Metadata`.

---
TYPE: BUG
DESC: Group metadata doesn't get serialized

---------

Co-authored-by: KiterLuc <[email protected]>
(cherry picked from commit 71a2cc4)
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.

4 participants