Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Switch RetryPolicy back to Throwable instead of Exception as in 1.x [BATCH-973] #2604
Dave Syer commented
It seems that some external libraries (e.g. commons-http) throw Error when they should throw Exception (i.e. it is not fatal and is recoverable). To accommodate that we can change the RetryPolicy signature to enable it to decide to retry a Throwable. The RetryCallback keeps Exception in its signature (hence RetryOperatonsInterceptor is not changed and isn't any easier to implement, but that's not really the priority here).