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

[ISSUE #7001] Fix IndexOutOfBoundsException when process pop response #7003

Conversation

redlsz
Copy link
Contributor

@redlsz redlsz commented Jul 7, 2023

Fixes #7001

Copy link
Member

@lizhimins lizhimins left a comment

Choose a reason for hiding this comment

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

Good catch

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

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

LGTM

// Value of POP_CK is used to determine whether it is a pop retry,
// cause topic could be rewritten by broker.
key = ExtraInfoUtil.getStartOffsetInfoMapKey(messageExt.getTopic(),
messageExt.getProperty(MessageConst.PROPERTY_POP_CK), messageExt.getQueueId());
Copy link
Member

Choose a reason for hiding this comment

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

有点忘了,如果是新版本 client - 低版本 broker 这里是不是可行 @xdkxlk

Copy link
Contributor

Choose a reason for hiding this comment

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

低版本broker指的是5.0.0 以后的?

Copy link
Contributor

Choose a reason for hiding this comment

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

看着没问题,低版本broker不会设置ck,这里就通过topic name来判断

@xdkxlk xdkxlk merged commit 55e0cdb into apache:develop Aug 15, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] java.lang.IndexOutOfBoundsException may occur in processPopResponse
5 participants