Skip to content

[fix][client] Fix for multiple hit at the interceptor for MultiTopicConsumer - #23080

Draft
touchkey wants to merge 7 commits into
apache:branch-2.10from
touchkey:branch-2.10
Draft

[fix][client] Fix for multiple hit at the interceptor for MultiTopicConsumer#23080
touchkey wants to merge 7 commits into
apache:branch-2.10from
touchkey:branch-2.10

Conversation

@touchkey

Copy link
Copy Markdown
Contributor

No description provided.

@touchkey
touchkey marked this pull request as draft July 26, 2024 13:28
configurationData, client.externalExecutorProvider(),
partitionIndex, true, listener != null, subFuture,
startMessageId, schema, interceptors,
startMessageId, schema, null,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we can't remove interceptors from internal consumer directly this will make other interceptor methods not work

long callTime = System.nanoTime();
try {
message = incomingMessages.poll(timeout, unit);
message = beforeConsume(message);

@coderzc coderzc Aug 8, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also need to call beforeConsume on internalReceiveAsync、internalReceive(long timeout, TimeUnit unit) 、messageReceived

@coderzc

coderzc commented Aug 8, 2024

Copy link
Copy Markdown
Member

I open another PR(#23141) to fix this issue

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