{"record":{"id":"cd7d85924a81d596","repo":"prestodb/presto","slug":"job-s-has-been-interrupted","errorCode":null,"errorMessage":"Job %s has been interrupted","messagePattern":"Job (.+?) has been interrupted","errorType":"error_code","errorClass":"BigQueryException","httpStatus":null,"severity":"error","filePath":"presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/ReadSessionCreator.java","lineNumber":188,"sourceCode":"            }\n            // add expiration time to the table\n            TableInfo createdTable = bigQueryClient.getTable(destinationTable);\n            long expirationTime = createdTable.getCreationTime() +\n                    HOURS.toMillis(config.viewExpirationTimeInHours);\n            Table updatedTable = bigQueryClient.update(createdTable.toBuilder()\n                    .setExpirationTime(expirationTime)\n                    .build());\n            return updatedTable;\n        }\n\n        Job waitForJob(Job job)\n        {\n            try {\n                return job.waitFor();\n            }\n            catch (InterruptedException e) {\n                Thread.currentThread().interrupt();\n                throw new BigQueryException(BaseServiceException.UNKNOWN_CODE, format(\"Job %s has been interrupted\", job.getJobId()), e);\n            }\n        }\n    }\n}\n","sourceCodeStart":170,"sourceCodeEnd":193,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/ReadSessionCreator.java#L170-L193","documentation":"Thrown by waitForJob when the thread blocked on BigQuery job.waitFor() is interrupted. It signals the BigQuery load/copy job did not finish because the caller (e.g. a Presto query thread being cancelled) aborted; the job result is unknown and the interrupt flag should typically be restored.","triggerScenarios":"Thrown at presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/ReadSessionCreator.java:188 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm whether the Presto query was cancelled or hit a timeout","Cancel the orphaned BigQuery job to avoid leaked billed compute","Retry the query if the interruption was transient"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}