You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I think could be done is to have either some other way to use a retry recoverer or detect the proper argument type (i.e. List of messages instead of a single message) and loop over them, although I'm not sure what would be the best approach
The text was updated successfully, but these errors were encountered:
Yes, we should fix this, but bear in mind that "recovering" from a failed delivery of a batch is difficult because the framework (and hence the recoverer) has no inherent knowledge which message in the batch failed (when it's a consumer-created batch that is; for a producer-created batch, there is only one message).
Affects Version(s): 2.2.1.RELEASE
Enhancement
When using batching in listeners with a
List
parameter, if an exception is thrown, there's no way to recover from it using a retry interceptor sincespring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/config/StatelessRetryOperationsInterceptorFactoryBean.java
Line 59 in e6e659a
throws a
ClassCastException
.What I think could be done is to have either some other way to use a retry recoverer or detect the proper argument type (i.e. List of messages instead of a single message) and loop over them, although I'm not sure what would be the best approach
The text was updated successfully, but these errors were encountered: