splunk / splunk/splunk-library-javalogging

Spring Boot Application not terminating with logback

Open
#269 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
140
Forks
173
PR merge metrics
No merged PRs in 30d

Description

I have a logback.xml configured and enabling the splunk appender on ROOT logger makes the application not terminate. I have seen some closed issues regarding this; I am facing this issue in 1.11.7

[restartedMain] DEBUG o.a.h.i.c.PoolingHttpClientConnectionManager - Connection manager shut down

[restartedMain] INFO  com.app.Application - Execution time in seconds: 0

[restartedMain] DEBUG o.s.boot.devtools.restart.Restarter - Creating new Restarter for thread Thread[main,5,main]

[restartedMain] DEBUG o.s.boot.devtools.restart.Restarter - Immediately restarting application

[restartedMain] DEBUG o.s.boot.devtools.restart.Restarter - Starting application com.app.Application with URLs [file:/workspaces/app/target/classes/]

[restartedMain] DEBUG o.s.b.a.ApplicationAvailabilityBean - Application availability state ReadinessState changed to ACCEPTING_TRAFFIC

Any Ideas?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with the reported logback.xml configuration, enabling the Splunk appender on the ROOT logger in the stated application version. Inspect the shutdown sequence around the connection-manager message and Spring Boot DevTools restart output. Done means identifying why the application remains active and confirming that it terminates normally with the appender enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.