You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/11/15 03:51:10 UTC
[GitHub] [rocketmq] NGLSL opened a new issue #3486: 批消息用户自定义Property,消费时自定义消息获取出错
NGLSL opened a new issue #3486:
URL: https://github.com/apache/rocketmq/issues/3486
**BUG REPORT**
1. Please describe the issue you observed:
发送批消息,在SendMessageHook中添加自定义用户Property
消费消息时,自定义的Property无法拿到,这个Property跑到timestamp中去了
版本:
Spring-rocketmq 2.2.1
Rocketmq 4.9.1
- What did you do (The steps to reproduce)?
发送消息:
```Java
List<Message<String>> messageList = new ArrayList<>();
for (int i = 0; i < 3; i++) {
Message<String> message = MessageBuilder.withPayload("test_" + System.currentTimeMillis()).build();
messageList.add(message);
}
rocketMQTemplate.syncSend("test_topic", messageList);
```
SendMessageHook:
```Java
Message message = context.getMessage();
message.putUserProperty("TestUserProperty", "xxxx");
```
- What did you expect to see
发送消息添加的用户自定义Property

消费消息时,拿到的Properties不对
这个Property,跑到了timestamp中去了

2. Please tell us about your environment:
windows10
rocketmq 4.9.1
java8
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Git-Yang commented on issue #3486: 批消息用户自定义Property,消费时自定义Property获取出错
Posted by GitBox <gi...@apache.org>.
Git-Yang commented on issue #3486:
URL: https://github.com/apache/rocketmq/issues/3486#issuecomment-969854239
Please refer to ISSUE #3476, this issue is being resolved. You can first merge this patch into your test branch to verify it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] NGLSL commented on issue #3486: 批消息用户自定义Property,消费时自定义Property获取出错
Posted by GitBox <gi...@apache.org>.
NGLSL commented on issue #3486:
URL: https://github.com/apache/rocketmq/issues/3486#issuecomment-969899249
> Please refer to ISSUE #3476, this issue is being resolved. You can first merge this patch into your test branch to verify it.
测试发送批量消息,以及能获取到自定义的Propert😁
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] NGLSL closed issue #3486: 批消息用户自定义Property,消费时自定义Property获取出错
Posted by GitBox <gi...@apache.org>.
NGLSL closed issue #3486:
URL: https://github.com/apache/rocketmq/issues/3486
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] NGLSL edited a comment on issue #3486: 批消息用户自定义Property,消费时自定义Property获取出错
Posted by GitBox <gi...@apache.org>.
NGLSL edited a comment on issue #3486:
URL: https://github.com/apache/rocketmq/issues/3486#issuecomment-969899249
> Please refer to ISSUE #3476, this issue is being resolved. You can first merge this patch into your test branch to verify it.
测试发送批量消息,能获取到自定义的Propert😁
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] NGLSL edited a comment on issue #3486: 批消息用户自定义Property,消费时自定义Property获取出错
Posted by GitBox <gi...@apache.org>.
NGLSL edited a comment on issue #3486:
URL: https://github.com/apache/rocketmq/issues/3486#issuecomment-969899249
> Please refer to ISSUE #3476, this issue is being resolved. You can first merge this patch into your test branch to verify it.
测试发送批量消息,能获取到自定义的Property😁
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org