You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/11/16 06:50:57 UTC
[GitHub] [skywalking] killGC opened a new issue #5848: rocketmq consume message thread no print tid
killGC opened a new issue #5848:
URL: https://github.com/apache/skywalking/issues/5848
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
```java
2020-11-16 14:37:21.437 INFO 14400 --- [http-nio-8050-exec-1] [TID:8.101.16055086412970001] com.sendinfo.rocketmq.TestController : 发送消息成功
2020-11-16 14:37:31.433 INFO 14400 --- [ConsumeMessageThread_2] [TID:N/A] com.sendinfo.rocketmq.TestConsumer : 接受消息,消息为{"CONSUME_START_TIME":"1605508651432","BORN_HOST":{"address":"192.168.66.197","port":60875},"TOPIC":"testTopic","sw6":"1-OC4xMDEuMTYwNTUwODY0MTI5NzAwMDE=-OC4xMDEuMTYwNTUwODY0MTI5NTAwMDA=-1-8-8-IzE5Mi4xNjguMjAxLjIxNTo5ODc2-Iy90ZXN0L2hlYWx0aA==-Iy90ZXN0L2hlYWx0aA==","BORN_TIMESTAMP":1605508641414,"QUEUE_ID":1,"COMMIT_LOG_OFFSET":1496232468,"UNIQ_KEY":"C0A842C5384018B4AAC25062A2860000","CLUSTER":"rocketmq-cluster","WAIT":"true","STORE_SIZE":411,"MSG_ID":"C0A842C5384018B4AAC25062A2860000","BODY_CRC":447798731,"PREPARED_TRANSACTION_OFFSET":0,"MIN_OFFSET":"0","REAL_TOPIC":"testTopic","SYS_FLAG":0,"QUEUE_OFFSET":125234,"MAX_OFFSET":"125235","RECONSUME_TIMES":0,"STORE_HOST":{"address":"192.168.201.215","port":10911},"DELAY":"3","STORE_TIMESTAMP":1605507915057,"TAGS":"*","REAL_QID":"1"}
2020-11-16 14:37:41.458 INFO 14400 --- [ConsumeMessageThread_3] [TID:N/A] com.sendinfo.rocketmq.TestConsumer : 接受消息,消息为{"CONSUME_START_TIME":"1605508661458","BORN_HOST":{"address":"192.168.66.197","port":60875},"TOPIC":"testTopic","sw6":"1-OC4xMDEuMTYwNTUwODY0MTI5NzAwMDE=-OC4xMDEuMTYwNTUwODY0MTI5NTAwMDA=-1-8-8-IzE5Mi4xNjguMjAxLjIxNTo5ODc2-Iy90ZXN0L2hlYWx0aA==-Iy90ZXN0L2hlYWx0aA==","ORIGIN_MESSAGE_ID":"C0A8C9D700002A9F00000000592EB214","BORN_TIMESTAMP":1605508641414,"QUEUE_ID":0,"RETRY_TOPIC":"testTopic","COMMIT_LOG_OFFSET":1496233374,"UNIQ_KEY":"C0A842C5384018B4AAC25062A2860000","CLUSTER":"rocketmq-cluster","WAIT":"false","STORE_SIZE":485,"MSG_ID":"C0A842C5384018B4AAC25062A2860000","BODY_CRC":447798731,"PREPARED_TRANSACTION_OFFSET":0,"MIN_OFFSET":"0","REAL_TOPIC":"%RETRY%yy","SYS_FLAG":0,"QUEUE_OFFSET":93,"MAX_OFFSET":"94","RECONSUME_TIMES":1,"STORE_HOST":{"address":"192.168.201.215","port":10911},"DELAY":"3","STORE_TIMESTAMP":1605507925085,"TAGS":"*","REAL_
QID":"0"}
```java
___
### Bug
- Which version of SkyWalking, OS and JRE?
skywalking 7.0.0, os windows,jre jdk8
- Which company or project?
- What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.
___
### Requirement or improvement
- Please describe your requirements or improvement suggestions.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #5848: rocketmq consume message thread no print tid
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5848:
URL: https://github.com/apache/skywalking/issues/5848#issuecomment-727839188
I don't have many details to share. Plugins are contributed by many people. If there is no interceptor executed, maybe.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] killGC commented on issue #5848: rocketmq consume message thread no print tid
Posted by GitBox <gi...@apache.org>.
killGC commented on issue #5848:
URL: https://github.com/apache/skywalking/issues/5848#issuecomment-727825895
i debug skywaling-agent,i found class 'org.apache.skywalking.apm.plugin.rocketMQ.v4.define.ConsumeMessageOrderlyInstrumentation' method enhanceClass executed,but method getConstructorsInterceptPoints and getInstanceMethodsInterceptPoints not execute.
finally when consume thread execute,class MessageConcurrentlyConsumeInterceptor's afterMethod method not execute
MessageListenerConcurrently ,i definde anonymous MessageListenerConcurrently subclass,maybe here is this reason?
```java
DefaultMQPushConsumer consumer = new DefaultMQPushConsumer(consumerGroup);
consumer.setNamesrvAddr(rocketMQProperties.getNamesrvAddr());
consumer.setMessageModel(MessageModel.valueOf(mqConsumer.messageMode()));
consumer.subscribe(topic, tags);
consumer.setInstanceName(UUID.randomUUID().toString());
AbstractRocketMQPushConsumer abstractMQPushConsumer = (AbstractRocketMQPushConsumer) bean;
if (MessageExtConst.CONSUME_MODE_CONCURRENTLY.equals(mqConsumer.consumeMode())) {
consumer.registerMessageListener((List<MessageExt> list, ConsumeConcurrentlyContext consumeConcurrentlyContext) ->
abstractMQPushConsumer.dealMessage(list, consumeConcurrentlyContext,maxRetries));
} else if (MessageExtConst.CONSUME_MODE_ORDERLY.equals(mqConsumer.consumeMode())) {
consumer.registerMessageListener((List<MessageExt> list, ConsumeOrderlyContext consumeOrderlyContext) ->
abstractMQPushConsumer.dealMessage(list, consumeOrderlyContext,maxRetries));
} else {
throw new RuntimeException("unknown consume mode ! only support CONCURRENTLY and ORDERLY");
}
abstractMQPushConsumer.setConsumer(consumer);
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #5848: rocketmq consume message thread no print tid
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #5848:
URL: https://github.com/apache/skywalking/issues/5848#issuecomment-727784396
I think it means this thread hasn't tracing context, meaning, SkyWalking hasn't tracing the thread which outputs the logs.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #5848: rocketmq consume message thread no print tid
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #5848:
URL: https://github.com/apache/skywalking/issues/5848
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org