chroma-core / chroma-core/chroma
[BUG] convertSegmentMetadataToModel debug logs nil instead of metadata
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 29.3k
- Forks
- 2.5k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 38
Description
Summary
In convertSegmentMetadataToModel (go/pkg/sysdb/coordinator/model_db_convert.go), the final log.Debug call passed nil to zap.Any("segmentMetadata", ...) instead of the resolved metadata value, so debug logs never showed the converted segment metadata.
Expected
Debug logging should record the actual metadata pointer/value after the empty-metadata normalization (including when it is nil).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in go/pkg/sysdb/coordinator/model_db_convert.go at convertSegmentMetadataToModel and inspect the empty-metadata normalization before the final log.Debug call. Done means the debug field records the resolved metadata value, including when that value is nil.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100