Skip to content

Metadata got deleted while using lib.defragment_symbol_data #2611

@himsheda

Description

@himsheda

Describe the bug

I had a library with defragmanted symbols. each symbol had data and metadata. but after defragment_symbol_data api call its returning a versioned item with metadata = None and if you read the metadata from db then its also None.

its a serious bug.

I am using arcticdb 4.4.3

Steps/Code to Reproduce

store["library_name"].defragment_symbol_data("symbol")

Output:

VersionedItem(symbol='symbol', library='library_name', data=n/a, version=232, metadata=None, host='S3(endpoint=uri, bucket=bucket-name)', timestamp=1756122299472736959)

Expected Results

VersionedItem(symbol='symbol', library='library_name', data=n/a, version=232, metadata={<metadata>}, host='S3(endpoint=uri, bucket=bucket-name)', timestamp=1756122299472736959)

OS, Python Version and ArcticDB Version

Python: 3.8.12 (default, Oct 12 2021, 13:49:34)
[GCC 7.5.0]
OS: Linux-5.15.0-140-generic-x86_64-with-glibc2.17
ArcticDB: 4.4.3

Backend storage used

Minio S3

Additional Context

Try on the symbols won which lib.is_symbol_fragmented(symbol) gives true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions