Adjust DataIterationBatchSize when we fail to copy the batch

Abierto
#87 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
go

Línea de trabajo

Start by locating DataIterationBatchSize and the batch-copy retry path in the Go code. Verify how maximum-size failures are detected, then confirm that retries reduce the batch exponentially to a minimum of one and that the migration succeeds when smaller batches fit.

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

Descripción

We transfer 200 records at a time by default (DataIterationBatchSize). If the records are large, we will run into maximum limits and fail. We will retry, but always with the same number of records, and fail the same way.

This is a suggestion we treat DataIterationBatchSize as a default value and back off exponentially if we fail because of the maximum limits on the size. For example, use DataIterationBatchSize/2 on the second try, DataIterationBatchSize/4 on the third, and 1 on the last try.

Lenguaje dominante
Go
Estrellas
858
Forks
77
Merge medio
10 d 4 h
PR fusionados (30 d)
4

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin 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 Shopify/ghostferry

Todos los issues de Shopify/ghostferry

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.