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

added hints of rocketmq module #3400

Merged
merged 3 commits into from
Jul 23, 2023

Conversation

steverao
Copy link
Collaborator

Describe what this PR does / why we need it

add hints of RocketMQ module

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@ruansheng8
Copy link
Collaborator

使用 rocketmq-broadcast-consumer1-example 打包成 native 镜像进行测试,启动正常,但是接受消息异常:

2023-07-23T18:28:00.029+08:00  INFO 8424 --- [           main] .b.RocketMQBroadcastConsumer1Application : Started RocketMQBroadcastConsumer1Application in 0.359 seconds (process running for 0.364)
2023-07-23T18:28:09.727+08:00  WARN 8424 --- [cast-consumer_1] .s.b.r.i.i.RocketMQInboundChannelAdapter : consume message failed. messageExt:MessageExt [brokerName=DESKTOP-MCODKCP, queueId=3, storeSize=315, queueOffset=600, sysFlag=0, bornTimestamp=1690108086674, bornHost=/192.168.2.15:57035, storeTimestamp=1690108086675, storeHost=/192.168.2.15:10911, msgId=C0A8020F00002A9F000000000021E8B5, commitLogOffset=2222261, bodyCRC=1707123325, reconsumeTimes=0, preparedTransactionOffset=0, toString()=Message{topic='broadcast', flag=0, properties={MIN_OFFSET=0, MAX_OFFSET=601, KEYS=KEY2, CONSUME_START_TIME=1690108086714, id=b52511bf-440b-7376-2ee2-47d6fc69db05, UNIQ_KEY=7F00000152FC63947C6B754269920004, CLUSTER=DefaultCluster, contentType=application/json, target-protocol=kafka, timestamp=1690108086674}, body=[123, 34, 109, 115, 103, 34, 58, 34, 72, 101, 108, 108, 111, 32, 82, 111, 99, 107, 101, 116, 77, 81, 32, 50, 34, 125], transactionId='null'}]

org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel '65802972.consumer-in-0.errors'.
        at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:76) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.channel.AbstractMessageChannel.sendInternal(AbstractMessageChannel.java:373) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:327) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:297) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:187) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:166) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:109) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:99) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.integration.core.ErrorMessagePublisher.publish(ErrorMessagePublisher.java:168) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.handler.advice.ErrorMessageSendingRecoverer.recover(ErrorMessageSendingRecoverer.java:83) ~[na:na]
        at org.springframework.retry.support.RetryTemplate.handleRetryExhausted(RetryTemplate.java:543) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:389) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:225) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.RocketMQInboundChannelAdapter.consumeMessage(RocketMQInboundChannelAdapter.java:162) ~[na:na]
        at com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.RocketMQInboundChannelAdapter.lambda$onInit$5(RocketMQInboundChannelAdapter.java:124) ~[na:na]
        at org.apache.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:402) ~[rocketmq-broadcast-consumer1-example.exe:4.9.4]
        at java.base@17.0.5/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na]
        at java.base@17.0.5/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at java.base@17.0.5/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at java.base@17.0.5/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
        at java.base@17.0.5/java.lang.Thread.run(Thread.java:833) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.windows.WindowsPlatformThreads.osThreadStartRoutine(WindowsPlatformThreads.java:178) ~[na:na]
Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers
        at org.springframework.integration.dispatcher.BroadcastingDispatcher.dispatch(BroadcastingDispatcher.java:153) ~[na:na]
        at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:72) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        ... 23 common frames omitted

2023-07-23T18:28:12.743+08:00  WARN 8424 --- [cast-consumer_1] .s.b.r.i.i.RocketMQInboundChannelAdapter : consume message failed. messageExt:MessageExt [brokerName=DESKTOP-MCODKCP, queueId=0, storeSize=315, queueOffset=600, sysFlag=0, bornTimestamp=1690108086675, bornHost=/192.168.2.15:57035, storeTimestamp=1690108086676, storeHost=/192.168.2.15:10911, msgId=C0A8020F00002A9F000000000021E9F0, commitLogOffset=2222576, bodyCRC=1677903946, reconsumeTimes=0, preparedTransactionOffset=0, toString()=Message{topic='broadcast', flag=0, properties={MIN_OFFSET=0, MAX_OFFSET=601, KEYS=KEY3, CONSUME_START_TIME=1690108089729, id=28470a01-a4d0-a688-9fe3-4c1fcffbe673, UNIQ_KEY=7F00000152FC63947C6B754269930006, CLUSTER=DefaultCluster, contentType=application/json, target-protocol=kafka, timestamp=1690108086675}, body=[123, 34, 109, 115, 103, 34, 58, 34, 72, 101, 108, 108, 111, 32, 82, 111, 99, 107, 101, 116, 77, 81, 32, 51, 34, 125], transactionId='null'}]

org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel '65802972.consumer-in-0.errors'.
        at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:76) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.channel.AbstractMessageChannel.sendInternal(AbstractMessageChannel.java:373) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:327) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:297) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:187) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:166) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:47) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:109) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:99) ~[rocketmq-broadcast-consumer1-example.exe:6.0.4]
        at org.springframework.integration.core.ErrorMessagePublisher.publish(ErrorMessagePublisher.java:168) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        at org.springframework.integration.handler.advice.ErrorMessageSendingRecoverer.recover(ErrorMessageSendingRecoverer.java:83) ~[na:na]
        at org.springframework.retry.support.RetryTemplate.handleRetryExhausted(RetryTemplate.java:543) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.springframework.retry.support.RetryTemplate.doExecute(RetryTemplate.java:389) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.springframework.retry.support.RetryTemplate.execute(RetryTemplate.java:225) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.RocketMQInboundChannelAdapter.consumeMessage(RocketMQInboundChannelAdapter.java:162) ~[na:na]
        at com.alibaba.cloud.stream.binder.rocketmq.integration.inbound.RocketMQInboundChannelAdapter.lambda$onInit$5(RocketMQInboundChannelAdapter.java:124) ~[na:na]
        at org.apache.rocketmq.client.impl.consumer.ConsumeMessageConcurrentlyService$ConsumeRequest.run(ConsumeMessageConcurrentlyService.java:402) ~[rocketmq-broadcast-consumer1-example.exe:4.9.4]
        at java.base@17.0.5/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na]
        at java.base@17.0.5/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at java.base@17.0.5/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at java.base@17.0.5/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
        at java.base@17.0.5/java.lang.Thread.run(Thread.java:833) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.thread.PlatformThreads.threadStartRoutine(PlatformThreads.java:775) ~[rocketmq-broadcast-consumer1-example.exe:na]
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.windows.WindowsPlatformThreads.osThreadStartRoutine(WindowsPlatformThreads.java:178) ~[na:na]
Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers
        at org.springframework.integration.dispatcher.BroadcastingDispatcher.dispatch(BroadcastingDispatcher.java:153) ~[na:na]
        at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:72) ~[rocketmq-broadcast-consumer1-example.exe:6.0.2]
        ... 23 common frames omitted

@ruansheng8 ruansheng8 self-requested a review July 23, 2023 11:55
@ruansheng8 ruansheng8 merged commit f978008 into alibaba:2022.x Jul 23, 2023
@ruansheng8
Copy link
Collaborator

LGTM

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