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

[#noissue] Fix rokectMQ plugin: judge the last char before append properties in ProducerSendInterceptor. #9135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hxuanz
Copy link

@hxuanz hxuanz commented Aug 21, 2022

RocketMq 4.9.1: save 1 byte for each message.
It removes the last char, but the rocketMQ plugin does not judge the last char before append properties. So use rocketMq 4.9.1+ with pinpoint, the last property will be modified.

eg: The last property is DELAY, the following exception will appear in broker.

java.lang.NumberFormatException: For input string: "4Pinpoint-Flags^A0" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at org.apache.rocketmq.common.message.Message.getDelayTimeLevel(Message.java:140) at org.apache.rocketmq.store.CommitLog.asyncPutMessage(CommitLog.java:624) at org.apache.rocketmq.store.DefaultMessageStore.asyncPutMessage(DefaultMessageStore.java:466) at org.apache.rocketmq.broker.processor.SendMessageProcessor.asyncSendMessage(SendMessageProcessor.java:327) at org.apache.rocketmq.broker.processor.SendMessageProcessor.asyncProcessRequest(SendMessageProcessor.java:106) at org.apache.rocketmq.broker.processor.SendMessageProcessor.asyncProcessRequest(SendMessageProcessor.java:87) at org.apache.rocketmq.remoting.netty.NettyRemotingAbstract$1.run(NettyRemotingAbstract.java:227) at org.apache.rocketmq.remoting.netty.RequestTask.run(RequestTask.java:80) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

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.

None yet

1 participant