damondouglas opened a new issue, #30579: URL: https://github.com/apache/beam/issues/30579
### What would you like to happen? Currently Exceptions listed in [RequestResponseIO.html#REPEATABLE_ERROR_TYPES](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/RequestResponseIO.html#REPEATABLE_ERROR_TYPES) drive whether [RequestResponseIO](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/RequestResponseIO.html) retries API calls with backoff of requests associated with [Caller](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/Caller.html) thrown [UserCodeExecutionException](https://beam.apache.org/releases/javadoc/current/org/apache/beam/io/requestresponse/UserCodeExecutionException.html)s. Future additions of repeatable error types would need to add such to this `REPEATABLE_ERROR_TYPES`. An approach more ammenable to change would instead consider the use of `@AutoService(RetryWithBackoff.class)` of a `UserCodeExecutionException`. ``` @AutoService(RetryWithBackoff.class) public class UserCodeTimeoutException extends UserCodeExecutionException { } ``` `REPEATABLE_ERROR_TYPES` might be populated as: ``` static { REPEATABLE_ERROR_TYPES = StreamSupport .stream(ServiceLoader.load(RetryWithBackoff.class).spliterator(), false) .collect(Collectors.toList()); } ``` ### 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]
