[
https://issues.apache.org/jira/browse/BEAM-7720?focusedWorklogId=295231&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-295231
]
ASF GitHub Bot logged work on BEAM-7720:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Aug/19 05:55
Start Date: 15/Aug/19 05:55
Worklog Time Spent: 10m
Work Description: chadrik commented on issue #9347: [BEAM-7720] Fix the
exception type of InMemoryJobService when job id not found
URL: https://github.com/apache/beam/pull/9347#issuecomment-521524078
Original discussion about this problem is here:
https://github.com/apache/beam/pull/8977#discussion_r301243749
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 295231)
Time Spent: 0.5h (was: 20m)
> 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
> Time Spent: 0.5h
> 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
(v7.6.14#76016)