[Bug]: 4.2-dev reads a published disk-cache range from a deleted object after same-key recreation

Abierto
#33,302 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@matrix-meow ya está trabajando en esto.

Desde el 26/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

kind/bug needs-triage
Is there an existing issue for the same bug?
  • I have checked the existing issues.

#27367 reported the same behavior on main and is closed. The “Known follow-ups” section of #27368 explicitly deferred invalidation of already-published range files. The case below reproduces on 4.2-dev.

Branch Name

4.2-dev

Commit ID

376853498154aa054bef72bf0878f71e4fc154f8

Other Environment Information

macOS arm64, Go 1.26.4. Package-level test with S3FS, the disk-backed object storage implementation, and a fresh local disk cache.

Actual Behavior

After deleting and recreating an object, a direct read returned new. A read of the same three bytes through the exact-range cache returned old. Both writes and the delete succeeded, and the request context stayed live. This also reproduced with the cache invalidation changes tested for #33295.

Expected Behavior

A read that starts after successful delete and recreation returns bytes from the new object, including when its byte range matches one cached before deletion.

Steps to Reproduce
  1. Open S3FS with a fresh disk cache. Set synchronous cache updates with SetAsyncUpdate(false).
  2. Write old to obj using SkipAllCache.
  3. Read [0,3) with SkipFullFilePreloads | SkipMemoryCache. This publishes the exact-range entry before deletion.
  4. Call Delete(ctx, "obj") with a live context and write new to the same key using SkipAllCache.
  5. Read [0,3) with SkipAllCache, then with the policy from step 3. The direct read returns new and the cached read returns old.
Additional information

The 4.2-dev implementation of DiskCache.DeletePaths removes the full-object path. Exact-range files have separate names and can survive removal of that path. The affected entry was fully published before the delete began. #33295 separately covers cancellation of invalidation for full objects and fills still admitted at deletion.

Lenguaje dominante
Go
Estrellas
1.9k
Forks
312
Merge medio
21 h 57 min
PR fusionados (30 d)
730

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de matrixorigin/matrixone

Todos los issues de matrixorigin/matrixone

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.