Repository navigation
docs(web): add a health check to the Spring Boot getting started guide - #796
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zdrawku
left a comment
There was a problem hiding this comment.
IMO as a Spring Boot health-check guide it's solid, but it misses a few things your comment asked for, and one gap is about how users set the server up.
- Most users can't call the new API as documented today.
install-server-sdk.md(both Spring Boot and Tomcat) and the other getting-started docs passRevealEngineServleta lambda that builds the server, so the application never keeps a reference to it. Those snippets should keep the built server in a variable or bean and pass that in instead. OtherwisegetStatus()is unreachable. This change only covers this on the Spring Boot getting-started page. - Do you thing we should add Tomcat / plain servlet example? We can add a short one that keeps the server in the
ServletContextListenerand exposes a/healthservlet returning 503 unless the state isRUNNING. - The "engine isn't restarted" point needs to stand on its own. It's currently buried in a getting-started step. Put it in a reference section, for example in
install-server-sdk.mdor a new "Java server status" page, and link to it from the Spring Boot guide. - Callback caveats. Callbacks added with
thenAcceptrun on the engine-exit thread or insideshutdown(), so recommendthenAcceptAsync(..., executor)plus.exceptionally(...). Note thatFAILEDstaysFAILEDeven if the app shuts down afterwards. - The readiness probe is left out. The dev sample adds
revealServerto both the liveness and readiness groups; the docs only add it to liveness. - Japanese page/changes when the main content is agreed on.
Lets also update the Export docs (exporting-dashboards.md / server-export.md, Java tab)
- Exports now fail with
ExportException("Export failed with status <N>: …")on 400 or higher, and with 503 once the engine has stopped. - Known limit: an export already running when the engine dies can still finish as a success with no file. Until that's fixed, callers should check that the file exists.
AND lets update the **release-notes.md as this change will be release with a preview.n version untill we have the official RTM, add a Section "## Preview" above the current h2 "2.3.2 (November 12, 2026)"
- New Features:
getStatus()andgetTermination(), with a link to the health-check docs. - Breaking Changes → Java:
- Exports used to return the error body where the file path should be; they now throw.
- Classes implementing
IRevealServer, such as mocks or decorators, no longer compile unless the follow-up adds default implementations.
- Bugs → Java: the server used to report healthy and keep serving 503s after the engine died; it now reports the failure. Add the known limit on in-flight exports.
All of this can only go to Production when we release a preview with it. I would say 2.4.0-preview.0 that we can tag today
…ne-termination-recovery
…eview release notes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move the health check out of the Spring Boot getting started guide into a Java Health Checks page that covers Spring Boot and other servlet containers, and link it from the install page. Map Reveal on /reveal-api/* in the Spring Boot example, since a servlet on /* also receives /actuator/health. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ck page Remove the Kubernetes mention and the Spring Boot probe groups, so the page only covers reporting the Reveal server status in the application's health check, and rename "Without Spring Boot" to "Servlet Containers". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thanks! Point by point:
Export docs: the Java tab of Release notes: added |
Add the Japanese Java Health Checks page and sidebar label, and translate the health check links, the failed export paragraph and the Preview release notes. Without the Japanese page, the ja build used the English one, whose link to the Spring Boot guide couldn't be resolved there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zdrawku
left a comment
There was a problem hiding this comment.
-
On
### Breaking Changes: "Correction to my earlier ask: let's move the exports entry under Bugs → Java instead of removing it. Callers that checked the returned path still need to change their code, so keep the sentence and link it to the snippet in server-export.md. There's noIRevealServerentry to add: only the SDK implements it." -
On server-export.md
"Suggest a short snippet. The exception arrives through the future, and the stream overloads (exportToPdf(dashboardId)) throw it too:"exporter.exportToPdf(dashboardId, filePath) .thenAccept(path -> send(path)) .exceptionally(t -> { log.error("Export failed", t.getCause()); return null; });
-
"Can you confirm what an export that's running when the engine dies does now? Earlier notes said it completes without a file, and your reply says it throws."
-
java-health-check.md
On the/reveal-api/*paragraph: "Moving Reveal off/*changes the client'ssetBaseUrlin every deployed app. Suggestmanagement.server.port=8081instead, so Actuator gets its own port and the mapping stays. Can you check it on the sample, the way you did Tomcat and WildFly?" -
On the
revealServerbean: "Suggest keeping the existing servlet and readingrevealServlet.getServlet().getRevealServer()in the indicator, plussetLoadOnStartup(1). That way the server's lifecycle doesn't change, and the servlet-container listener doesn't have to shut the server down itself." -
Under step 3: "On Kubernetes,
/actuator/health/livenessonly includeslivenessStateby default, so a failed engine never triggers a restart. Suggest addingmanagement.endpoint.health.group.liveness.include=livenessState,revealServerback." -
At the end: "Suggest one paragraph for apps with no orchestrator, such as Tomcat on a VM or running as a Windows service: nothing restarts the app, so alert on the health endpoint."
dont forget the JP changes as well
Keep Reveal on /* and run Actuator on its own port, read the server from RevealEngineServlet in the health checks, and let the servlet build and shut down the server. Move the export entry to Bugs, add an export error handling snippet, and suggest an alert when nothing restarts the application. Update the Japanese pages to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Japanese pages are updated with all of the above. |
There was a problem hiding this comment.
I'd rather not add this one. We want the page to stay platform-neutral, without Kubernetes-specific settings. The page points the health check at /actuator/health, which includes every indicator, so a failed engine already answers 503 there and the restart happens.
I agree.
Thanks @nerzhei, well done!
Summary
Documents the Java SDK server status API from Infragistics-BusinessTools/Reveal#4762 in the Spring Boot getting started guide: when the Reveal engine process stops, the server answers 503 and doesn't recover, so the application reports it in its health check and the platform restarts it.
The Japanese page (
i18n/ja/.../getting-started-spring-boot.md) is not updated.Evidence
After: the Docusaurus dev server compiles the page without errors. The code follows the
spring-boot-tomcat-standalonedev sample in the Reveal PR.Merge Danger
Door: two-way
Docs only. Merge after Infragistics-BusinessTools/Reveal#4762 ships, since
getStatus()andgetTermination()don't exist in released SDKs yet.Blast Radius: one page
🤖 Generated with Claude Code