Skip to content

Bug: Health instance details are not refreshed on status change #5156

Closed

Description

@cdprete

Spring Boot Admin Server information

  • Version: 4.0.2

  • Spring Boot version: 4.0.3

  • Configured Security: None

  • Webflux or Servlet application: WebFlux

Client information

  • Spring Boot versions: 4.0.3

  • Used discovery mechanism: Eureka

  • Webflux or Servlet application: WebFlux

Description

Hello.

I realized that the details view of an instance doesn't get refreshed anymore when a new status update comes in.
I had the page open and, while I correctly got the browser notification that the instance went from RESTRICTED to UP, the page was still showing it as RESTRICTED.
Only an explicit refresh of the page made then possible to show the final, correct state.

@SteKoe it seems quite critical to me.

Activity

  1. added a commit that references this issue on Mar 24, 2026
  2. SteKoe commented on Mar 25, 2026

    @SteKoe
    Contributor

    Should be fixed. I have added tests and checked the behaviour manually. Will be shipped with next release.

  3. cdprete commented on Mar 25, 2026

    @cdprete
    ContributorAuthor

    Thanks for the fix @SteKoe. It would be great if this could be released as soon as possible :)

  4. added this to the 4.0.3 milestone on Mar 28, 2026
  5. cdprete commented on Apr 7, 2026

    @cdprete
    ContributorAuthor

    Hello @SteKoe.
    Would it be possible to get this released?
    Ideally, please include at least #5186 as well in the released package.

    Thanks in advance.

  6. cdprete commented on Apr 13, 2026

    @cdprete
    ContributorAuthor

    Hello @SteKoe.

    I installed the new version but now the UI is flickering on every refresh.
    Not only the health section but the entire instance view somehow flickers.
    Even if the accordions are collapsed.

    Is this to be expected? I must say it's not very pleasant :)

  7. cdprete commented on Apr 17, 2026

    @cdprete
    ContributorAuthor

    Hello @SteKoe.

    Indeed, if I understood the code in https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-health.vue right (I'm only missing when the instance prop would be updated to trigger the watcher), we're now fetching the health directly by calling the instance-specific actuator endpoint.

    Ideally, instead, we should just subscribe to https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/web/InstancesController.java#L161, filter the events by type and use the SSE as only source of truth.

    The heavy load of fetching the health should happen on the backend (like it was on 3.x I think, since I didn't experience this flickering) and not on the frontend.

    The same probably applies to the info section, but I didn't had the chance to check in there yet.

    Basically, in my opinion, they should behave like the journal view where, after directly fetching an initial state, the data are coming from the SSEs so that the UI has no real heavy work to do.

    Moreover, given that the health and info section of the instance details view just show the latest state, potentially it's not even needed to fetch the initial state directly but just wait for the SSE with some sort of loading indicator and a label explaining why it's shown (e.g.: Waiting for health events from the server).
    On the other end, it's also nice to open the instance details view and have an intial state, so I could accept with no issue the call to fetch the initial state.

    Currently, once more if I got the code right, we then end up calling the health/info 2 * num of SBA instances since those calls are both done by the status/info update triggers on the backend as well as by the UI.
    You can easily see how this is not ideal since it's just the same work done twice. :)

    Should I maybe open another ticket to tackle this?
    What do/does you/the team think?

    /cc @erikpetzold @hzpz @ulischulte (I interacted with nobody else so far :D)

  8. cdprete commented on Apr 20, 2026

    @cdprete
    ContributorAuthor

    Hello @SteKoe.

    Indeed, if I understood the code in https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-health.vue right (I'm only missing when the instance prop would be updated to trigger the watcher), we're now fetching the health directly by calling the instance-specific actuator endpoint.

    Ideally, instead, we should just subscribe to https://github.com/codecentric/spring-boot-admin/blob/master/spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/web/InstancesController.java#L161, filter the events by type and use the SSE as only source of truth.

    The heavy load of fetching the health should happen on the backend (like it was on 3.x I think, since I didn't experience this flickering) and not on the frontend.

    The same probably applies to the info section, but I didn't had the chance to check in there yet.

    Basically, in my opinion, they should behave like the journal view where, after directly fetching an initial state, the data are coming from the SSEs so that the UI has no real heavy work to do.

    Moreover, given that the health and info section of the instance details view just show the latest state, potentially it's not even needed to fetch the initial state directly but just wait for the SSE with some sort of loading indicator and a label explaining why it's shown (e.g.: Waiting for health events from the server). On the other end, it's also nice to open the instance details view and have an intial state, so I could accept with no issue the call to fetch the initial state.

    Currently, once more if I got the code right, we then end up calling the health/info 2 * num of SBA instances since those calls are both done by the status/info update triggers on the backend as well as by the UI. You can easily see how this is not ideal since it's just the same work done twice. :)

    Should I maybe open another ticket to tackle this? What do/does you/the team think?

    /cc @erikpetzold @hzpz @ulischulte (I interacted with nobody else so far :D)

    I've opened #5286 to handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions