Devices briefly appear offline between normal check-ins

Đang mở
#185 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Lĩnh vực
backend, frontend, mobile

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ả

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).
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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MDMesh-app/MDMesh

Tất cả issue của MDMesh-app/MDMesh

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.