GeezerVison is showing github.com — BigQueryJob returns false if it does not exists · Issue #851 · googleapis/google-cloud-java
BigQueryJob returns false if it does not exists #851Labels api: computeIssues related to the Compute Engine API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DescriptionOn line 183, the job return false if it is null. It makes more sense for it to return true. A job once created cannot be deleted. If a user somehow obtained a non-null Job instance, the only way for this get to receive null is that the job was completed and somehow perished.
/cc @aozarov @mziccard Activityaozarov commented on Apr 4, 2016 Agree to the above though I would like to mention the other option of throwing an exception if we detect that this job no longer exists.
I think both of these options are better than getting an infinite loop by waiting for a non-existing job to complete. added type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. on Apr 4, 2016mziccard commented on Apr 4, 2016 Nice catch. FYI job information is no longer available after six months from job creation.
I think I would return true if you do not have any strong argument against.
This issue also applies to compute's operations where operations can be deleted only if they have already completed their execution. Even for compute I would return true if the operation does not exist. mziccard commented on Apr 5, 2016 Leaving this open for compute mziccard commented on Apr 15, 2016
MetadataMetadataapi: computeIssues related to the Compute Engine API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. DevelopmentNo branches or pull requestsIssue actions
|