chroma-core / chroma-core/chroma

[BUG] convertSegmentMetadataToModel debug logs nil instead of metadata

Open Beginner friendly
#6,885 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.