Devices briefly appear offline between normal check-ins

オープン
#185 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
kotlin, kubernetes, react, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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).
主要言語
Java
スター
44
フォーク
25
平均マージ
1日 13時間
マージ済み PR(30日)
80

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MDMesh-app/MDMesh のほかの issue

MDMesh-app/MDMesh の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。