Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2528 Batch processing of messages: When one of the messages encounters a parsing exception, only the exception messages are rejected, not all of them #2531

Closed
wants to merge 4 commits into from

Conversation

zhangheng0027
Copy link
Contributor

Batch processing of messages: When one of the messages encounters a parsing exception, only the exception messages are rejected, not all of them。

…ssages encounters a parsing exception, only the exception messages are rejected, not all of them
Message<?> messagingMessage = toMessagingMessage(message);
messagingMessages.add(messagingMessage);
} catch (MessageConversionException e) {
this.logger.trace("Could not convert incoming message", e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; this should work, but the log should be error().

Also, please add a test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, It's all resolved

Copy link
Contributor

@garyrussell garyrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error: eckstyle] [ERROR] /home/runner/work/spring-amqp/spring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/BatchMessagingMessageListenerAdapter.java:70:17: '}' at column 17 should be alone on a line. [RightCurly]
Error: eckstyle] [ERROR] /home/runner/work/spring-amqp/spring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/BatchMessagingMessageListenerAdapter.java:74:41: '}' at column 6 should be alone on a line. [RightCurly]

@zhangheng0027
Copy link
Contributor Author

Error: eckstyle] [ERROR] /home/runner/work/spring-amqp/spring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/BatchMessagingMessageListenerAdapter.java:70:17: '}' at column 17 should be alone on a line. [RightCurly]
Error: eckstyle] [ERROR] /home/runner/work/spring-amqp/spring-amqp/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/BatchMessagingMessageListenerAdapter.java:74:41: '}' at column 6 should be alone on a line. [RightCurly]

It's a bit different from my habits, but I have already made the necessary changes according to the regulations

@garyrussell garyrussell added this to the 3.1.0-RC1 milestone Oct 2, 2023
@garyrussell
Copy link
Contributor

Thanks for the contribution!

Merged as e521033 after polishing.

@garyrussell garyrussell closed this Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants