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

Beast process hung if credentials is not proper #9

@mauliksoneji

Description

@mauliksoneji

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions