Bug / Feature: Improve status reporting
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java, spring-boot
- Domain
- backend, observability
Research direction
Start with the linked issue comment and the status refresh path. Check how process uptime is provided by the process info contributor and how refreshes handle stale status; done means restarts are detected through uptime when available, while the existing logic remains when it is not.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 12.9k
- Forks
- 3.2k
- Avg merge
- 23h 31m
- Merged PRs (30d)
- 72
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from codecentric/spring-boot-admin
-
Bug: Dependency Trees overflows the call stack on cyclic SBOM dependency graphsPossibly taken @faystmax claimed this 1 day ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 68/100
codecentric/spring-boot-admin#5746 ·
Maintainers usually reply within 1 day
-
Bug: Dependency Trees uses dependencies[0] as root instead of metadata.component.bom-refPossibly taken @faystmax claimed this 1 day ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 68/100
codecentric/spring-boot-admin#5745 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
codecentric/spring-boot-admin#5743 ·
Maintainers usually reply within 1 day
-
Bug: Filtering rules are not synchronized between SBA nodesPossibly taken @SteKoe claimed this 4 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
codecentric/spring-boot-admin#5721 · 3 comments ·
Maintainers usually reply within 1 day
-
Bug: Multiple notifications from multiple instancesPossibly taken @YadavKshitiz claimed this 6 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 55/100
codecentric/spring-boot-admin#5716 · 1 comment ·
Maintainers usually reply within 1 day
All issues in codecentric/spring-boot-admin
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
bancolombia/scaffold-clean-architecture#1002 ·
Maintainers usually reply within 1 day
-
CalendarEventAttendance/get returns eventAttendanceStatus while the doc says attendanceStatusPossibly taken @chibenwa claimed this today. Openbug claude
Difficulty 1/5 Under an hour Newbie friendliness 90/100
linagora/tmail-backend#2697 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/skywalking#14120 ·
Maintainers usually reply within 1 day
-
[BUG] Case-insensitive search suggestions miss items when the JVM default locale is TurkishPossibly taken @thswlsqls claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
HMCL-dev/HMCL#6943 · 1 comment ·
Maintainers usually reply within 1 day