Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

A credit can be added to a billing account that is being deleted

Abierto
#2,010 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
75/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go

Línea de trabajo

Read CreateEntry and the billing account delete change referenced in #1999 to understand the existing transaction and locking behavior. Add the live customer row read with FOR KEY SHARE inside the transaction before the balance check and insert, returning customer.ErrNotFound for a soft deleted row. Confirm the lock coordinates with the delete's FOR UPDATE and that the account's transactions are included in its forfeit totals.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

CreateEntry checks that the billing account is live before it opens its transaction. The credit insert inside that transaction does not read the account again.

If the account delete commits between the check and the insert, a new live transaction is written for a deleted account. The delete only hides the transactions that exist when it runs, so this one is left outside the forfeit totals.

Proposed fix: inside CreateEntry's transaction, read the live customer row with FOR KEY SHARE before the balance check and the insert. It only has to conflict with the FOR UPDATE lock that the account delete takes. Return customer.ErrNotFound when the row is already soft deleted.

Context: found while reviewing the billing account delete change in #1999. It is listed there as a known gap.

Lenguaje dominante
Go
Estrellas
344
Forks
48
Merge medio
2 d 10 h
PR fusionados (30 d)
60

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

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 raystack/frontier

Todos los issues de raystack/frontier

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.