damondouglas opened a new issue, #30581: URL: https://github.com/apache/beam/issues/30581
### What would you like to happen? Add a new `@ThrowImmediately` annotation for [UserCodeExecutionException](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/UserCodeExecutionException.html) subclasss that signals to [RequestResponseIO](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/RequestResponseIO.html) to immediately throw the Exception, caught when invoking [Caller](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/Caller.html)'s call method, and don't add to the failure PCollection. In combination with #30579, `RequestResponseIO` may retry with backoff before throwing the Exception. For example: The following Exception class will throw immediately if caught by `RequestResponseIO` when invoking [Caller](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/Caller.html)'s call method ``` @ThrowImmediately class MySpecialUserCodeExecutionException extends UserCodeExecutionException { } ``` In combination with #30579, the following will throw after retry with backoff: ``` @ThrowImmediately @AutoService(RetryWithBackoff.class) class MySpecialUserCodeExecutionException extends UserCodeExecutionException { } ``` ### Issue Priority Priority: 2 (default / most feature requests should be filed as P2) ### Issue Components - [ ] Component: Python SDK - [X] Component: Java SDK - [ ] Component: Go SDK - [ ] Component: Typescript SDK - [ ] Component: IO connector - [ ] Component: Beam YAML - [ ] Component: Beam examples - [ ] Component: Beam playground - [ ] Component: Beam katas - [ ] Component: Website - [ ] Component: Spark Runner - [ ] Component: Flink Runner - [ ] Component: Samza Runner - [ ] Component: Twister2 Runner - [ ] Component: Hazelcast Jet Runner - [ ] Component: Google Cloud Dataflow Runner -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
