[ https://issues.apache.org/jira/browse/BEAM-7720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luke Cwik resolved BEAM-7720. ----------------------------- Fix Version/s: 2.16.0 Resolution: Fixed > Fix the exception type of InMemoryJobService when job id not found > ------------------------------------------------------------------ > > Key: BEAM-7720 > URL: https://issues.apache.org/jira/browse/BEAM-7720 > Project: Beam > Issue Type: Bug > Components: beam-model > Reporter: Chad Dombrova > Assignee: Chad Dombrova > Priority: Major > Fix For: 2.16.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > The contract in beam_job_api.proto for `CancelJobRequest`, > `GetJobStateRequest`, and `GetJobPipelineRequest` states: > > {noformat} > // Throws error NOT_FOUND if the jobId is not found{noformat} > > However, `InMemoryJobService` is handling this exception incorrectly by > rethrowing `NOT_FOUND` exceptions as `INTERNAL`. > neither `JobMessagesRequest` nor `GetJobMetricsRequest` state their contract > wrt exceptions, but they should probably be updated to handle `NOT_FOUND` in > the same way. > -- This message was sent by Atlassian Jira (v8.3.2#803003)