elastic / elastic/apm-agent-java

Shutdown blocks for 5s if APM Server is down

Open
#2,074 0 comments 0 reactions 0 assignees View on GitHub
agent-java enhancement performance
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

On shutdown, we're trying to gracefully stop the reporter and the disruptor. As no events can be processed if APM Server is down, the shutdown always takes as long as the configured timeout.

https://github.com/elastic/apm-agent-java/pull/1897 fixes the issue but we don't actually need the soft flush behavior.
Ideally, we should not only check once if the reporter is in a backoff but periodically to guard against cases where APM Server becomes unavailable during shutdown.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.