Skip to content

Is it possible to manually acknowledge messages via msgId? #18544

Answered by labuladong
crossoverJie asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @crossoverJie,

it did not achieve the desired effect
{"individuallyDeletedMessages":"[(407:4..407:5]]"}

But I think this is the expected behavior: you acknowledge (mark delete) the message 407:5 so individuallyDeletedMessages records this message as deleted.

Can you describe what's your desired effect?

By the way, you can just use MessageIdImpl to specify a message id:

consumer.acknowledge(new MessageIdImpl(legerID, entryID, partitionIndex));

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@michaeljmarshall
Comment options

@crossoverJie
Comment options

crossoverJie Nov 21, 2022
Collaborator Author

@crossoverJie
Comment options

crossoverJie Nov 21, 2022
Collaborator Author

@crossoverJie
Comment options

crossoverJie Nov 21, 2022
Collaborator Author

@labuladong
Comment options

Answer selected by crossoverJie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants