aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
diff options
context:
space:
mode:
authorGravatar Chloe Calvarin <ccalvarin@google.com>2016-12-13 19:48:34 +0000
committerGravatar John Cater <jcater@google.com>2016-12-13 21:05:37 +0000
commiteaa3be7fe4305ec617bdc4874c5bca926639d04f (patch)
treed7d71e86f8fffd7f745c34b264a4486dfd205e43 /src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
parent8a32c3758a28b9c8624422a364a74987315143da (diff)
Record correct exit code for uncaught exceptions in async threads.
Async threads are divorced from the server's error-reporting mechanism. In the event of a server shutdown originating in an async-thread, write the exit code to a file that can be read by the client. -- PiperOrigin-RevId: 141920284 MOS_MIGRATED_REVID=141920284
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
index 64a9da783e..fe4fe8cfe1 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
@@ -286,4 +286,16 @@ public class BlazeServerStartupOptions extends OptionsBase {
category = "server startup",
help = "The amount of time the client waits for each attempt to connect to the server")
public int connectTimeoutSecs;
+
+ @Option(
+ name = "use_custom_exit_code_on_abrupt_exit",
+ defaultValue = "true", // NOTE: purely decorative!
+ category = "undocumented",
+ help =
+ "If the Blaze server exits abruptly without access to traditional channels to "
+ + "communicate its exit code, attempt to communicate through a backup channel. "
+ + "This flag is temporary to allow easy disabling of a new behavior. "
+ + "Please do not use this flag."
+ )
+ public boolean useCustomExitCodeOnAbruptExit;
}