tsgrpc_kvstore driver - how to signal `generation_if_equal` mismatch on write?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 28/100
Línea de trabajo
Comienza con los comentarios de los protos WriteRequest y WriteResponse y con el código PerformWriteback vinculado en transaction.cc. Traza cómo se gestionan generation_if_equal, una generation desconocida y GenerationAndTimestamp, y documenta la respuesta de mismatch esperada, el comportamiento de retry y el significado del timestamp; verifica la explicación frente a la secuencia de escritura reportada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi,
I'm trying to implement a gRPC service for the tsgrpc_kvstore driver, and trying to understand how to correctly support the generation_if_equal option for WriteRequest. In particular, how to handle the case where the generation does not match - the comment in the proto says "the write is aborted" on a mismatch, what exactly does this mean?
Both returning an error from the RPC and returning an error in the WriteResponse.status field leads to the TensorStore write to fail immediately, which leads me to believe this is not what I should do?
Looking at PerformWriteback I see that the transaction is re-tried if the returned generation is "unknown" (== empty). However if I try this, TensorStore just sends writes with generation_if_equal=StorageGeneration::NoValue() in a loop, instead of what I would expect:
- Attempt a write with an old generation, receive StorageGeneration::Unknown
- Issue a read to obtain the current value of the file
- Issue a new write, with the update generation and value
thank you!
PS: I'm also a bit unclear what I should use for the timestamp value of GenerationAndTimestamp - is this intended to be the current time of the gRPC server? The last modified time of the file?
- Lenguaje dominante
- C++
- Estrellas
- 1.6k
- Forks
- 151
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de google/tensorstore
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
google/tensorstore#305 ·
-
Ship Python 3.15 wheelsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 64/100
google/tensorstore#298 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
google/tensorstore#291 · 1 comentario · 1 reacción ·
-
Zarr3 rectilinear chunk gridAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
google/tensorstore#288 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
google/tensorstore#279 ·
Todos los issues de google/tensorstore
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
AutoHotkey/AutoHotkey#380 ·
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Lua File: add readWhole()Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
grumpycoders/pcsx-redux#2667 ·
-
GCC 15.2: -Wcast-qual warning - cast discards const qualifier from pointer target type (H5trace.c)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
Los mantenedores suelen responder en 1 día
-
bug module: copilot
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
MaaAssistantArknights/MaaAssistantArknights#19250 · 2 comentarios ·
Los mantenedores suelen responder en 1 día