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

How to understand ConsumeConcurrentlyStatus.RECONSUME_LATER #682

Open
lixianli1987 opened this issue Sep 19, 2024 · 0 comments
Open

How to understand ConsumeConcurrentlyStatus.RECONSUME_LATER #682

lixianli1987 opened this issue Sep 19, 2024 · 0 comments

Comments

@lixianli1987
Copy link

My consume code is follows
public class HrConsumeListener implements MessageListenerConcurrently { @Override public ConsumeConcurrentlyStatus consumeMessage(List<MessageExt> list, ConsumeConcurrentlyContext consumeConcurrentlyContext) { try { list.forEach(messageExt -> { System.out.println(messageExt); }); int i = 1/0; return ConsumeConcurrentlyStatus.CONSUME_SUCCESS; }catch (Exception e){ System.out.println("消费失败,offset不移动"); return ConsumeConcurrentlyStatus.RECONSUME_LATER; } } }
When consum fails, consumOffset still moves,I don't think it should move,but why?
AAORB}FO}(DOO`0)N~{ZIH7

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

No branches or pull requests

1 participant