Skip to content

Commit 7749413

Browse files
committed
fix forbidden
1 parent 5962e08 commit 7749413

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/bootstrap/ElasticsearchUncaughtExceptionHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import org.apache.logging.log4j.LogManager;
1313
import org.apache.logging.log4j.Logger;
14+
import org.elasticsearch.core.SuppressForbidden;
1415

1516
import java.io.IOError;
1617

@@ -58,6 +59,7 @@ void onNonFatalUncaught(final String threadName, final Throwable t) {
5859
logger.error(message, t);
5960
}
6061

62+
@SuppressForbidden(reason = "intentionally halting")
6163
void halt(int status) {
6264
// we halt to prevent shutdown hooks from running
6365
Runtime.getRuntime().halt(status);

0 commit comments

Comments
 (0)