Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Beast process hung if credentials is not proper #9

Open
mauliksoneji opened this issue Mar 22, 2019 · 0 comments
Open

Beast process hung if credentials is not proper #9

mauliksoneji opened this issue Mar 22, 2019 · 0 comments
Labels
bug Something isn't working hacktoberfest

Comments

@mauliksoneji
Copy link
Contributor

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.

@mauliksoneji mauliksoneji added the bug Something isn't working label Mar 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants