Devices briefly appear offline between normal check-ins
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- kotlin, kubernetes, react, typescript
Línea de trabajo
Read the v0.4.0 presence logic in web/src/data/presence.ts and the Android scheduling paths in CheckInWorker.kt and WakeKeepAlive.kt. Compare the check-in and heartbeat intervals with the 10-minute offline cutoff, then trace how the device list determines status. Done means normal scheduling leaves a reliable margin before the cutoff or the issue's alternative behavior is addressed, with the reproduction steps no longer showing false offline transitions.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Component
Device agent (Android)
What happened?
On MDMesh 0.4.0, devices frequently switch between online and offline in the device list, often with a last check-in 10–20 minutes ago.
The console marks devices offline after 10 minutes without a check-in. However, the agent schedules periodic check-ins every 15 minutes, plus a 10-minute heartbeat that leaves no margin for Android scheduling or network delays. The list uses check-in age rather than live WebSocket connectivity.
Expected: the normal reporting interval should be comfortably shorter than the offline cutoff, e.g. a 5-minute heartbeat and a 10-minute cutoff, subject to Android scheduling constraints. Alternatively, make the cutoff configurable and account for live connection status.
Relevant v0.4.0 source:
- https://github.com/MDMesh-app/MDMesh/blob/v0.4.0/web/src/data/presence.ts
- https://github.com/MDMesh-app/MDMesh/blob/v0.4.0/agent-android/core/src/main/kotlin/com/mdmesh/core/sync/CheckInWorker.kt
- https://github.com/MDMesh-app/MDMesh/blob/v0.4.0/agent-android/app/src/main/kotlin/com/mdmesh/agent/service/WakeKeepAlive.kt
Steps to reproduce
- Enroll devices with the default check-in/connectivity settings and leave them connected to the network.
- Monitor and refresh the Devices list without manually triggering syncs.
- Observe devices marked offline when their last check-in exceeds 10 minutes, then returning online at a later check-in.
This appears intermittent across the fleet; it is not a claim that every device marked offline is actually reachable.
MDMesh version / commit
Server, web console and Android agent: 0.4.0
Environment
Official MDMesh container images deployed on Kubernetes. Managed Android tablets, including Acer A8-11_EEA (Android 14) and Lenovo TB305FU (Android 15).
Relevant logs
Before submitting
- I searched existing issues and this isn't a duplicate.
- I'm not reporting a security vulnerability here (those go via private disclosure, not a public issue).
- Lenguaje dominante
- Java
- Estrellas
- 44
- Forks
- 25
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 80
Preparar el entorno
- Incluye un Dockerfile o un 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 MDMesh-app/MDMesh
-
enhancement
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
MDMesh-app/MDMesh#252 ·
Los mantenedores suelen responder en 2 días
-
Change Kiosk TitleAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
MDMesh-app/MDMesh#253 ·
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
MDMesh-app/MDMesh#232 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
MDMesh-app/MDMesh#205 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
MDMesh-app/MDMesh#204 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de MDMesh-app/MDMesh
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
bug devops low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
aphtech/brailleblaster#209 ·
Los mantenedores suelen responder en 1 día