beast
beast copied to clipboard
Beast process hung if credentials is not proper
Beast process gets hung when it's not able to find GOOGLE_CREDENTIALS. Here is stack trace for the same.
java.io.FileNotFoundException: /<some-secret-file> (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.gojek.beast.factory.BeastFactory.getBigQueryInstance(BeastFactory.java:96)
at com.gojek.beast.factory.BeastFactory.createBigQuerySink(BeastFactory.java:88)
at com.gojek.beast.factory.BeastFactory.createBqWorkers(BeastFactory.java:81)
Exception in thread "main" java.lang.NullPointerException
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:877)
at com.google.cloud.ServiceOptions$Builder.setCredentials(ServiceOptions.java:207)
at com.gojek.beast.factory.BeastFactory.getBigQueryInstance(BeastFactory.java:103)
at com.gojek.beast.factory.BeastFactory.createBigQuerySink(BeastFactory.java:88)
at com.gojek.beast.factory.BeastFactory.createBqWorkers(BeastFactory.java:81)
at com.gojek.beast.launch.Main.main(Main.java:27)
Expected outcome: Beast process should restart if config is not proper.