Metrics shutdown hook can take a long time

Description

The Alluxio client registers a JVM shutdown hook to perform a final metrics heartbeat before shutdown. If the heartbeat takes a long time, it can make it difficult to stop the JVM. We should enforce a short limit (e.g. 500ms) on how long the final heartbeat is allowed to take, and exit without heartbeating if it takes so long.

Environment

None

Status

Assignee

Andrew Audibert

Reporter

Andrew Audibert

Labels

None

Components

Fix versions

Affects versions

1.8.0

Priority

Critical
Configure