Devices briefly appear offline between normal check-ins
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- kotlin, kubernetes, react, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- Java
- Star
- 44
- Fork
- 25
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 80
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MDMesh-app/MDMesh
-
enhancement
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
MDMesh-app/MDMesh#252 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Change Kiosk TitleĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
MDMesh-app/MDMesh#253 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
MDMesh-app/MDMesh#232 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
MDMesh-app/MDMesh#205 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
MDMesh-app/MDMesh#204 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của MDMesh-app/MDMesh
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug devops low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
aphtech/brailleblaster#209 ·
Maintainer thường phản hồi trong vòng 1 ngày