Skip to content

When graceful shutdown of Tomcat is aborted it may report that it completed successfully #39942

@wilkinsona

Description

@wilkinsona

There's a race condition between the thread that's waiting for Tomcat to become inactive or the graceful shutdown to be aborted and the thread that aborts the shutdown and stops Tomcat when the grace period has elapsed. This race can lead to Tomcat appearing to have become inactive before the abort of the shutdown is noticed. When this happens, the result of the shutdown is reported as IDLE when it should have been REQUESTS_ACTIVE. This result is mostly benign although it does affect the log messages that are emitted. It is also causing some of our graceful shutdown tests to be flaky.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions