[Bug]: get_info_for_dispatch default resolves to empty owner in multi-owner deployments
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Área
- backend
Línea de trabajo
El error está en push_notification_config_store.py e inmemory_push_notification_config_store.py. Empieza leyendo el método predeterminado get_info_for_dispatch y comprueba cómo llama a get_info con un ServerCallContext vacío. Después, examina la lógica de owner_resolver en el almacén en memoria para entender la partición de propietario de cadena vacía. La corrección consiste en hacer abstracto el método, pero comprueba primero las subclases existentes. Ejecuta cualquier prueba existente para las notificaciones push para verificar el comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
PushNotificationConfigStore.get_info_for_dispatch(task_id) is the cross-owner read used by the dispatch loop it must return every config for a task regardless of which owner registered it. But the shipped (non-abstract) default falls back to an owner-scoped get_info with an empty context:
# push_notification_config_store.py (v1.1.3) — default fallback
async def get_info_for_dispatch(self, task_id):
logger.warning('%s does not override get_info_for_dispatch ...', type(self).__name__)
return await self.get_info(task_id, ServerCallContext()) # empty context
get_info resolves the owner partition from that context:
# inmemory_push_notification_config_store.py — get_info
owner = self.owner_resolver(context) # empty ctx -> empty-string owner
owner_infos = self._get_owner_push_notification_infos(owner)
return list(owner_infos.get(task_id, [])) # that partition is empty -> []
So ServerCallContext() -> empty-string owner -> returns [] -> every push notification is silently dropped in any multi-owner deployment. The only signal is a per-call logger.warning.
Proposed fix: #1180 fixes this by marking the method as abstractmethod. However, the method shipped as non-abstract (latest released versions at this time - v1.1.4), so this is a breaking change to a public ABC (existing subclasses fail to instantiate on upgrade) and should be a part of a major release.
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct
- Lenguaje dominante
- Python
- Estrellas
- 2.2k
- Forks
- 509
- Merge medio
- 3 d 11 h
- PR fusionados (30 d)
- 43
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 a2aproject/a2a-python
-
[Bug]: REST task/request id sanitizationPosiblemente ocupada @Linux2010 la tomó hace 105 días. Abiertomaintainers-only
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
a2aproject/a2a-python#805 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[Bug]: Agent card signature verification raises raw binascii.Error on a malformed protected header instead of SignatureVerificationErrorPosiblemente ocupada @rohityan la tomó hace 2 días. Abierto
a2aproject/a2a-python#1332 · 2 asignados ·
Los mantenedores suelen responder en 2 días
-
[Bug]: Framework-written FAILED status drops status.timestamp, persisting last_updated as NULLPosiblemente ocupada @rohityan la tomó hace 2 días. Abierto
a2aproject/a2a-python#1331 · 2 asignados ·
Los mantenedores suelen responder en 2 días
-
[Bug]: message/send hangs forever when the AgentExecutor returns without producing eventsPosiblemente ocupada @rohityan la tomó hace 2 días. Abierto
a2aproject/a2a-python#1330 · 2 asignados ·
Los mantenedores suelen responder en 2 días
-
Whole numbers in a data Part are returned as floats (e.g. 4326 becomes 4326.0)Posiblemente ocupada @rohityan la tomó hace 2 días. Abierto
a2aproject/a2a-python#1328 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de a2aproject/a2a-python
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100
PedestrianDynamics/pyFDS-Evac#766 ·
Los mantenedores suelen responder en 1 día
-
Markdown tables render as literal text in 3 example files (missing blank line before header)Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 91/100
alchaincyf/nuwa-skill#86 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días
-
Docs Needs Triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
pandas-dev/pandas#71055 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: graphify reads files that git's global ignore file hidesPosiblemente ocupada @smngvlkz la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Graphify-Labs/graphify#4335 · 1 comentario ·
Los mantenedores suelen responder en 1 día