chroma-core / chroma-core/chroma

[Bug]: collection.count()` fails in ChromaDB 1.0.8 with `InvalidArgumentError: Failed to pull logs from the log store

Open
#4,516 2 comments 0 reactions 1 assignee Claimed by @jairad26 View on GitHub
bug
Dominant language
Rust
Stars
29.3k
Forks
2.5k
Avg merge
1d 4h
Merged PRs (30d)
38

Description

### What happened?

### 🐛 Bug: `collection.count()` fails in ChromaDB 1.0.8 with `InvalidArgumentError: Failed to pull logs from the log store`

**Summary**
Calling `collection.count()` on an existing persisted collection (using ChromaDB 1.0.8 + `PersistentClient`) fails with a backend error related to compactor logstore behavior.

---

### ✅ Steps to Reproduce

1. Create a collection with ChromaDB 1.0.8 using `PersistentClient`
2. Populate it with any number of records
3. Reopen it and call `.count()`:

```python
client = chromadb.PersistentClient(path="...")
collection = client.get_collection(name="podcasts")
print(collection.count())
```
4. Observe:

```
InvalidArgumentError: Error executing plan: Error sending backfill request to compactor: Failed to pull logs from the log store
```

---

### 🔍 Notes

* The error occurs regardless of collection contents
* Appears to be triggered only during `.count()` — `.peek()` still works
* Likely a regression or unhandled state in ChromaDB's compactor/logstore system
* No unusual modifications or manual file tampering occurred

### Versions

* `chromadb==1.0.8`
* Python 3.12
* macOS
* Using persistent ChromaDB directory (\~13GB in size)

### Relevant log output

```shell

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.