[PR #7515] [MERGED] One corrupt manifest should not wedge model operations #43695

Closed
opened 2026-04-24 23:17:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7515
Author: @dhiltgen
Created: 11/5/2024
Status: Merged
Merged: 11/5/2024
Merged by: @dhiltgen

Base: mainHead: corrupt_manifest


📝 Commits (1)

  • 89ed451 One corrupt manifest should not wedge model operations

📊 Changes

5 files changed (+34 additions, -21 deletions)

View changed files

📝 server/images.go (+4 -3)
📝 server/layer.go (+2 -1)
📝 server/manifest.go (+11 -4)
📝 server/manifest_test.go (+1 -1)
📝 server/routes.go (+16 -12)

📄 Description

One potential failure mode is an empty file which bubbles up as an EOF error, leading to all attempts to pull anything failing, and listing operations failing. Instead, continue and warn about the corrupt manifest, and allow re-pulling the model to clean up the corruption.

Fixes #7393
Fixes #6920


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/7515 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 11/5/2024 **Status:** ✅ Merged **Merged:** 11/5/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `corrupt_manifest` --- ### 📝 Commits (1) - [`89ed451`](https://github.com/ollama/ollama/commit/89ed451347ad4f46eed3688c0e3148d51f67cbcc) One corrupt manifest should not wedge model operations ### 📊 Changes **5 files changed** (+34 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `server/images.go` (+4 -3) 📝 `server/layer.go` (+2 -1) 📝 `server/manifest.go` (+11 -4) 📝 `server/manifest_test.go` (+1 -1) 📝 `server/routes.go` (+16 -12) </details> ### 📄 Description One potential failure mode is an empty file which bubbles up as an EOF error, leading to all attempts to pull anything failing, and listing operations failing. Instead, continue and warn about the corrupt manifest, and allow re-pulling the model to clean up the corruption. Fixes #7393 Fixes #6920 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 23:17:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#43695