joerghoh commented on code in PR #640:
URL: https://github.com/apache/jackrabbit-oak/pull/640#discussion_r932979261
##########
oak-benchmarks-elastic/src/main/java/org/apache/jackrabbit/oak/benchmark/ElasticBenchmarkRunner.java:
##########
@@ -25,7 +25,7 @@ public class ElasticBenchmarkRunner extends BenchmarkRunner {
private static ElasticConnection connection;
- public static void main(String[] args) throws Exception {
+ public static int main(String[] args) throws Exception {
Review Comment:
Whenever a command executes ```System.exit(statuscode);``` directly, a
stacktrace will be written during termination. For the shutdownHook in
```org.apache.jackrabbit.oak.run.Main``` it's not possible to find out if the
JVM is terminated by the OS or by triggered by a ```System.exit()``` call.
Therefor all commands need to return to this main method.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]