Devices briefly appear offline between normal check-ins

Abierto
#185 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

bug
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:

Steps to reproduce
  1. Enroll devices with the default check-in/connectivity settings and leave them connected to the network.
  2. Monitor and refresh the Devices list without manually triggering syncs.
  3. 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

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 MDMesh-app/MDMesh

Todos los issues de MDMesh-app/MDMesh

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.