You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 17:18:45 UTC

[GitHub] [beam] kennknowles opened a new issue, #18294: Faling to re-raise exceptions

kennknowles opened a new issue, #18294:
URL: https://github.com/apache/beam/issues/18294

   In runners common.py `reraise_augmented` fails to re-raise exceptions in some case.
   
   `raise type(exn), args, sys.exc_info()[2]`
   
   The above code assumes that the Exception can be reconstructed from its arguments but this is not always true for custom exception classes. (e.g. `RPCError` in https://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/master/python/googledatastore/connection.py#L226
   
   This re-raising could first attempt to re-create the exception and if that does not fail raise otherwise raise the original exception as is.
   
   (cc: [~robertwb])
   
   Imported from Jira [BEAM-1901](https://issues.apache.org/jira/browse/BEAM-1901). Original Jira may contain additional context.
   Reported by: altay.


-- 
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.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org