Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bug / Feature: Improve status reporting

Aperta
#4,664 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java, spring-boot

Direzione di ricerca

Inizia dal commento dell’issue collegato e dal percorso di aggiornamento dello stato. Verifica come il contributore delle informazioni sul processo fornisce l’uptime del processo e come gli aggiornamenti gestiscono uno stato obsoleto; il lavoro è completato quando i riavvii vengono rilevati tramite l’uptime, quando disponibile, mentre la logica esistente rimane invariata quando non lo è.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status: waiting-for-triage type: enhancement

See from this comment for further details https://github.com/codecentric/spring-boot-admin/issues/4389#issuecomment-3312922644.
/cc @SteKoe

Question
In case of not graceful shutdowns, SBA may report the previous status since it doesn't realize that a restart happened.
For example, an instance is reported up since X while it's actually up since Y with Y < X.

Enhancement
As part of the status info, keep track of the process uptime and use it between one refresh and the next one to detect if the current available information are stale.
Given that the process uptime increases monotonically, given 2 times T1 and T2, it will always be that T1 < T2 (with T2 = T1 + refresh interval).
The only case where this inequality is false is on restarts, since the process uptime resets and it can therefore be used exactly to detect these cases.
Changes in the PID may also be an option, but that's less stable (i.e.: the PID may be missing if info and env endpoints are disabled) and less precise (i.e.: there is no way to tell since when the app was then really up).
If the process uptime is not available (i.e.: the process info contributor is disabled), the old logic should apply.

Lingua principale
Java
Stelle
12.9k
Fork
3.2k
Merge medio
13h 56m
PR unite (30g)
84

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codecentric/spring-boot-admin

Tutte le issue di codecentric/spring-boot-admin

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.