Comments (26)
I guess this is a problem with the docker network, not MQTT consumer issue.
The test case in java is working in my local(just change the host and port).
from mop.
@Technoboy- thank you for your reply.
I tried installing pulsar locally, and did nothing but just adding mop configuraiton into standalone.conf.
And also changed advertisedAddress into server' IP address(as it seems like pulsar-manager would use this for sending request).
But it turns out to be the same. No messages returned.
from mop.
@Technoboy-
I comment out the publish code and leave just subscription, and the log in pulsar is
09:59:52.542 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - process CONNECT message. CId=java-test, username=null
09:59:52.543 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Authentication is disabled, allowing client. CId=java-test, username=null
09:59:52.545 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Configuring connection. CId=java-test
09:59:52.547 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending connect ACK. CId=java-test
09:59:52.549 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connect ACK has been sent. CId=java-test
09:59:52.549 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The CONNECT message has been processed. CId=java-test, username=null success=true
09:59:52.581 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Subscribe] [[id: 0x2f442d2f, L:/10.191.5.110:1883 - R:/10.191.18.10:5821]] msg: MqttSubscribeMessage[fixedHeader=MqttFixedHeader[messageType=SUBSCRIBE, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=44], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@4fdcc036], payload=MqttSubscribePayload[MqttTopicSubscription[topicFilter=persistent://public/default/nodejs-mqtt, option=SubscriptionOption[qos=AT_LEAST_ONCE, noLocal=false, retainAsPublished=false, retainHandling=SEND_AT_SUBSCRIBE]]]]
09:59:52.591 [pulsar-27-2] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Trying to acquire ownership of public/default/0xc0000000_0xffffffff
09:59:52.599 [pulsar-ordered-OrderedExecutor-7-0-EventThread] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Successfully acquired ownership of /namespace/public/default/0xc0000000_0xffffffff
09:59:52.604 [pulsar-ordered-OrderedExecutor-5-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/nodejs-mqtt
09:59:52.608 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Creating ledger, metadata: {component=[109, 97, 110, 97, 103, 101, 100, 45, 108, 101, 100, 103, 101, 114], pulsar/managed-ledger=[112, 117, 98, 108, 105, 99, 47, 100, 101, 102, 97, 117, 108, 116, 47, 112, 101, 114, 115, 105, 115, 116, 101, 110, 116, 47, 110, 111, 100, 101, 106, 115, 45, 109, 113, 116, 116], application=[112, 117, 108, 115, 97, 114]} - metadata ops timeout : 60 seconds
09:59:52.619 [main-EventThread] INFO org.apache.bookkeeper.client.LedgerCreateOp - Ensemble: [127.0.0.1:3181] for ledger: 68
09:59:52.620 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Created ledger 68
09:59:52.623 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Loading cursor java-test
09:59:52.624 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Recovering from bookkeeper ledger cursor: java-test
09:59:52.624 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Loading cursor sub-name
09:59:52.624 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Recovering from bookkeeper ledger cursor: sub-name
09:59:52.625 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Cursor java-test recovered to position 27:2
09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Recovery for cursor java-test completed. pos=27:2 -- todo=1
09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Cursor sub-name recovered to position 27:1
09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Recovery for cursor sub-name completed. pos=27:1 -- todo=0
09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - [public/default/persistent/nodejs-mqtt] Successfully initialize managed ledger
09:59:52.628 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.AbstractTopic - Disabling publish throttling for persistent://public/default/nodejs-mqtt
09:59:52.628 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/nodejs-mqtt] There are no replicated subscriptions on the topic
09:59:52.629 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/nodejs-mqtt - dedup is disabled
09:59:52.634 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending SUBACK message MqttSubAckMessage[fixedHeader=MqttFixedHeader[messageType=SUBACK, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=0], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@4fdcc036], payload=MqttSubAckPayload[reasonCodes=[1]]] to java-test
10:00:01.967 [pulsar-web-63-6] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:10:00:01 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1978 "-" "Pulsar-Java-v2.8.0" 7
10:00:01.976 [pulsar-web-63-4] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:10:00:01 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1978 "-" "Pulsar-Java-v2.8.0" 5
Is there something wrong?
from mop.
@Technoboy-
I comment out the publish code and leave just subscription, and the log in pulsar is09:59:52.542 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - process CONNECT message. CId=java-test, username=null 09:59:52.543 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Authentication is disabled, allowing client. CId=java-test, username=null 09:59:52.545 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Configuring connection. CId=java-test 09:59:52.547 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending connect ACK. CId=java-test 09:59:52.549 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connect ACK has been sent. CId=java-test 09:59:52.549 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The CONNECT message has been processed. CId=java-test, username=null success=true 09:59:52.581 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Subscribe] [[id: 0x2f442d2f, L:/10.191.5.110:1883 - R:/10.191.18.10:5821]] msg: MqttSubscribeMessage[fixedHeader=MqttFixedHeader[messageType=SUBSCRIBE, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=44], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@4fdcc036], payload=MqttSubscribePayload[MqttTopicSubscription[topicFilter=persistent://public/default/nodejs-mqtt, option=SubscriptionOption[qos=AT_LEAST_ONCE, noLocal=false, retainAsPublished=false, retainHandling=SEND_AT_SUBSCRIBE]]]] 09:59:52.591 [pulsar-27-2] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Trying to acquire ownership of public/default/0xc0000000_0xffffffff 09:59:52.599 [pulsar-ordered-OrderedExecutor-7-0-EventThread] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Successfully acquired ownership of /namespace/public/default/0xc0000000_0xffffffff 09:59:52.604 [pulsar-ordered-OrderedExecutor-5-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/nodejs-mqtt 09:59:52.608 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Creating ledger, metadata: {component=[109, 97, 110, 97, 103, 101, 100, 45, 108, 101, 100, 103, 101, 114], pulsar/managed-ledger=[112, 117, 98, 108, 105, 99, 47, 100, 101, 102, 97, 117, 108, 116, 47, 112, 101, 114, 115, 105, 115, 116, 101, 110, 116, 47, 110, 111, 100, 101, 106, 115, 45, 109, 113, 116, 116], application=[112, 117, 108, 115, 97, 114]} - metadata ops timeout : 60 seconds 09:59:52.619 [main-EventThread] INFO org.apache.bookkeeper.client.LedgerCreateOp - Ensemble: [127.0.0.1:3181] for ledger: 68 09:59:52.620 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Created ledger 68 09:59:52.623 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Loading cursor java-test 09:59:52.624 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Recovering from bookkeeper ledger cursor: java-test 09:59:52.624 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Loading cursor sub-name 09:59:52.624 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Recovering from bookkeeper ledger cursor: sub-name 09:59:52.625 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Cursor java-test recovered to position 27:2 09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Recovery for cursor java-test completed. pos=27:2 -- todo=1 09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Cursor sub-name recovered to position 27:1 09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Recovery for cursor sub-name completed. pos=27:1 -- todo=0 09:59:52.627 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - [public/default/persistent/nodejs-mqtt] Successfully initialize managed ledger 09:59:52.628 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.AbstractTopic - Disabling publish throttling for persistent://public/default/nodejs-mqtt 09:59:52.628 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/nodejs-mqtt] There are no replicated subscriptions on the topic 09:59:52.629 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/nodejs-mqtt - dedup is disabled 09:59:52.634 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending SUBACK message MqttSubAckMessage[fixedHeader=MqttFixedHeader[messageType=SUBACK, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=0], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@4fdcc036], payload=MqttSubAckPayload[reasonCodes=[1]]] to java-test 10:00:01.967 [pulsar-web-63-6] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:10:00:01 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1978 "-" "Pulsar-Java-v2.8.0" 7 10:00:01.976 [pulsar-web-63-4] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:10:00:01 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1978 "-" "Pulsar-Java-v2.8.0" 5
Is there something wrong?
The above log seems working well, but no publish
command in the log. Could you continue to paste more log here ?
from mop.
11:11:10.685 [worker-scheduler-0] INFO org.apache.pulsar.functions.worker.SchedulerManager - Schedule summary - execution time: 0.061135051 sec | total unassigned: 0 | stats: {"Added": 0, "Updated": 0, "removed": 0}
{
"c-standalone-fw-10.191.5.110-8080" : {
"originalNumAssignments" : 0,
"finalNumAssignments" : 0,
"instancesAdded" : 0,
"instancesRemoved" : 0,
"instancesUpdated" : 0,
"alive" : true
}
}
------------------------------------------------ start to run ----------------------------------------------------------------------
11:11:38.642 [pulsar-web-63-5] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:11:11:38 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1974 "-" "Pulsar-Java-v2.8.0" 11
11:11:38.652 [pulsar-web-63-1] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:11:11:38 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1974 "-" "Pulsar-Java-v2.8.0" 5
11:11:44.687 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - process CONNECT message. CId=java-test, username=null
11:11:44.687 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Authentication is disabled, allowing client. CId=java-test, username=null
11:11:44.689 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Configuring connection. CId=java-test
11:11:44.691 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending connect ACK. CId=java-test
11:11:44.696 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connect ACK has been sent. CId=java-test
11:11:44.696 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The CONNECT message has been processed. CId=java-test, username=null success=true
11:11:44.717 [pulsar-io-29-1] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Subscribe] [[id: 0x401c706c, L:/10.191.5.110:1883 - R:/10.191.18.10:3625]] msg: MqttSubscribeMessage[fixedHeader=MqttFixedHeader[messageType=SUBSCRIBE, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=44], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@7db7fb65], payload=MqttSubscribePayload[MqttTopicSubscription[topicFilter=persistent://public/default/nodejs-mqtt, option=SubscriptionOption[qos=AT_LEAST_ONCE, noLocal=false, retainAsPublished=false, retainHandling=SEND_AT_SUBSCRIBE]]]]
11:11:44.726 [pulsar-27-2] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Trying to acquire ownership of public/default/0xc0000000_0xffffffff
11:11:44.740 [pulsar-ordered-OrderedExecutor-4-0-EventThread] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Successfully acquired ownership of /namespace/public/default/0xc0000000_0xffffffff
11:11:44.747 [pulsar-ordered-OrderedExecutor-5-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/nodejs-mqtt
11:11:44.752 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Creating ledger, metadata: {component=[109, 97, 110, 97, 103, 101, 100, 45, 108, 101, 100, 103, 101, 114], pulsar/managed-ledger=[112, 117, 98, 108, 105, 99, 47, 100, 101, 102, 97, 117, 108, 116, 47, 112, 101, 114, 115, 105, 115, 116, 101, 110, 116, 47, 110, 111, 100, 101, 106, 115, 45, 109, 113, 116, 116], application=[112, 117, 108, 115, 97, 114]} - metadata ops timeout : 60 seconds
11:11:44.759 [main-EventThread] INFO org.apache.bookkeeper.client.LedgerCreateOp - Ensemble: [127.0.0.1:3181] for ledger: 182
11:11:44.759 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Created ledger 182
11:11:44.762 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Loading cursor java-test
11:11:44.763 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Recovering from bookkeeper ledger cursor: java-test
11:11:44.763 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Loading cursor sub-name
11:11:44.763 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Recovering from bookkeeper ledger cursor: sub-name
11:11:44.764 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Cursor java-test recovered to position 27:2
11:11:44.767 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Recovery for cursor java-test completed. pos=27:2 -- todo=1
11:11:44.767 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/nodejs-mqtt] Cursor sub-name recovered to position 27:1
11:11:44.767 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/nodejs-mqtt] Recovery for cursor sub-name completed. pos=27:1 -- todo=0
11:11:44.767 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - [public/default/persistent/nodejs-mqtt] Successfully initialize managed ledger
11:11:44.768 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.AbstractTopic - Disabling publish throttling for persistent://public/default/nodejs-mqtt
11:11:44.768 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/nodejs-mqtt] There are no replicated subscriptions on the topic
11:11:44.769 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/nodejs-mqtt - dedup is disabled
11:11:44.774 [bookkeeper-ml-scheduler-OrderedScheduler-2-0] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending SUBACK message MqttSubAckMessage[fixedHeader=MqttFixedHeader[messageType=SUBACK, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=0], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@7db7fb65], payload=MqttSubAckPayload[reasonCodes=[1]]] to java-test
11:11:44.802 [pulsar-io-29-1] INFO com.scurrilous.circe.checksum.Crc32cIntChecksum - SSE4.2 CRC32C provider initialized
11:11:44.829 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x8a1c4281, L:/127.0.0.1:32964 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.829 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x8a1c4281, L:/127.0.0.1:32964 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.833 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xd4af412c, L:/127.0.0.1:32968 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.833 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xd4af412c, L:/127.0.0.1:32968 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.834 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.834 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xf491b97c, L:/127.0.0.1:3181 - R:/127.0.0.1:32964]
11:11:44.836 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xa118ab0f, L:/127.0.0.1:32970 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.836 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xa118ab0f, L:/127.0.0.1:32970 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.837 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xce18acac, L:/127.0.0.1:32972 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.837 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.837 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xce18acac, L:/127.0.0.1:32972 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.837 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x80634616, L:/127.0.0.1:3181 - R:/127.0.0.1:32968]
11:11:44.837 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.838 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x2151bb47, L:/127.0.0.1:3181 - R:/127.0.0.1:32966]
11:11:44.839 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x6493b5c4, L:/127.0.0.1:32978 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.839 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x6493b5c4, L:/127.0.0.1:32978 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.839 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xd666e5bf, L:/127.0.0.1:32966 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.839 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xd666e5bf, L:/127.0.0.1:32966 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.839 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xb1cdccdc, L:/127.0.0.1:32980 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.839 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x0cb6c4bc, L:/127.0.0.1:32976 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.839 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xb1cdccdc, L:/127.0.0.1:32980 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.842 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.842 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x7d207a96, L:/127.0.0.1:3181 - R:/127.0.0.1:32976]
11:11:44.842 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x53750769, L:/127.0.0.1:32986 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.842 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x53750769, L:/127.0.0.1:32986 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.842 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x8ab59be1, L:/127.0.0.1:32988 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.843 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x8ab59be1, L:/127.0.0.1:32988 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.843 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.843 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x761895c9, L:/127.0.0.1:3181 - R:/127.0.0.1:32992]
11:11:44.843 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x0cb6c4bc, L:/127.0.0.1:32976 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.843 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.843 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xaf840a98, L:/127.0.0.1:3181 - R:/127.0.0.1:32970]
11:11:44.844 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x2ed86bc2, L:/127.0.0.1:32974 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.844 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xe252744a, L:/127.0.0.1:32984 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.844 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x2ed86bc2, L:/127.0.0.1:32974 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.844 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xe252744a, L:/127.0.0.1:32984 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.845 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x44b4c199, L:/127.0.0.1:32982 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.845 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x44b4c199, L:/127.0.0.1:32982 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.846 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.846 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x8338affe, L:/127.0.0.1:3181 - R:/127.0.0.1:32972]
11:11:44.846 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.846 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xb8c7824e, L:/127.0.0.1:3181 - R:/127.0.0.1:32974]
11:11:44.847 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.847 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.847 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x725ff9bc, L:/127.0.0.1:3181 - R:/127.0.0.1:32978]
11:11:44.847 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x8e80bb00, L:/127.0.0.1:3181 - R:/127.0.0.1:32980]
11:11:44.847 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.847 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.847 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xa1e86790, L:/127.0.0.1:3181 - R:/127.0.0.1:32982]
11:11:44.847 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x36883f02, L:/127.0.0.1:3181 - R:/127.0.0.1:32984]
11:11:44.849 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xb285d72b, L:/127.0.0.1:32992 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.849 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xd4cf75ba, L:/127.0.0.1:32994 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.849 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xb285d72b, L:/127.0.0.1:32992 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.849 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xd4cf75ba, L:/127.0.0.1:32994 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.852 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xf5039218, L:/127.0.0.1:32990 - R:127.0.0.1/127.0.0.1:3181]
11:11:44.852 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xf5039218, L:/127.0.0.1:32990 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
11:11:44.852 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.852 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x36cc6a7c, L:/127.0.0.1:3181 - R:/127.0.0.1:32986]
11:11:44.852 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.852 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x99d230a8, L:/127.0.0.1:3181 - R:/127.0.0.1:32988]
11:11:44.853 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.853 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x362ec9a1, L:/127.0.0.1:3181 - R:/127.0.0.1:32990]
11:11:44.853 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
11:11:44.853 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xc9bfeed7, L:/127.0.0.1:3181 - R:/127.0.0.1:32994]
11:11:51.986 [SyncThread-7-1] INFO org.apache.bookkeeper.bookie.EntryLogManagerBase - Creating a new entry log file because current active log channel has not initialized yet
11:11:51.993 [SyncThread-7-1] INFO org.apache.bookkeeper.bookie.EntryLoggerAllocator - Created new entry log file data/standalone/bookkeeper0/current/e.log for logId 14.
11:11:51.998 [pool-6-thread-1] INFO org.apache.bookkeeper.bookie.EntryLoggerAllocator - Created new entry log file data/standalone/bookkeeper0/current/f.log for logId 15.
11:11:52.017 [SyncThread-7-1] INFO org.apache.bookkeeper.bookie.Journal - garbage collected journal 17bc30db9ef.txn
11:12:08.633 [pulsar-web-63-6] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:11:12:08 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1974 "-" "Pulsar-Java-v2.8.0" 7
11:12:08.640 [pulsar-web-63-3] INFO org.eclipse.jetty.server.RequestLog - 10.191.5.110 - - [08/Sep/2021:11:12:08 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1974 "-" "Pulsar-Java-v2.8.0" 3
from mop.
I also tried aop and cannot receive messages either...
It's more likely that something is wrong with my pulsar or network.
But I install pulsar locally and basically didn't change anything.
Or I should install something but I haven't ?
from mop.
@Technoboy-
I tried kop.
As mentioned in the doc, when I execute the kafka producer:
./bin/kafka-console-producer.sh --broker-list <server-ip>:9092 --topic test
it also failed.
[2021-09-08 13:36:20,220] WARN [Producer clientId=console-producer] Connection to node -1 (/<server-ip>:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient)
[2021-09-08 13:36:20,221] WARN [Producer clientId=console-producer] Bootstrap broker <server-ip>:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
But when I modified the lisenter config in standalone.xml from 127.0.0.1 to certain IP it works.
kafkaListeners=PLAINTEXT://127.0.0.1:9092
kafkaAdvertisedListeners=PLAINTEXT://127.0.0.1:9092
I'm wondering if the ip in listerner and advertisedAddress matters.
I'm using mqttListeners=mqtt://127.0.0.1:1883 with advertisedAddress using a certain ip.
from mop.
@Technoboy-
I tried kop.
As mentioned in the doc, when I execute the kafka producer:./bin/kafka-console-producer.sh --broker-list <server-ip>:9092 --topic testit also failed.
[2021-09-08 13:36:20,220] WARN [Producer clientId=console-producer] Connection to node -1 (/<server-ip>:9092) could not be established. Broker may not be available. (org.apache.kafka.clients.NetworkClient) [2021-09-08 13:36:20,221] WARN [Producer clientId=console-producer] Bootstrap broker <server-ip>:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
But when I modified the lisenter config in standalone.xml from 127.0.0.1 to certain IP it works.
kafkaListeners=PLAINTEXT://127.0.0.1:9092 kafkaAdvertisedListeners=PLAINTEXT://127.0.0.1:9092
I'm wondering if the ip in listerner and advertisedAddress matters.
I'm using mqttListeners=mqtt://127.0.0.1:1883 with advertisedAddress using a certain ip.
Config seems all right .
Could you help to enable the log to debug level, and try to restart the mop , then help to paste the debug log here?
from mop.
I've add
- name: io.streamnative.pulsar.handlers.mqtt
level: debug
additivity: false
AppenderRef:
- ref: Console
and reexecute the test.
14:49:46.630 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler - Processing MQTT Inbound handler message, type=CONNECT
14:49:46.631 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - process CONNECT message. CId=java-test, username=null
14:49:46.632 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Authentication is disabled, allowing client. CId=java-test, username=null
14:49:46.636 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Configuring connection. CId=java-test
14:49:46.637 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connection has been configured CId=java-test, keepAlive=30, cleanSession=true, idleTime=45
14:49:46.638 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending connect ACK. CId=java-test
14:49:46.638 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.ConnectionDescriptor - Updating state of connection descriptor. MqttClientId = java-test, expectedState = DISCONNECTED, newState = SENDACK.
14:49:46.640 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connect ACK has been sent. CId=java-test
14:49:46.640 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.ConnectionDescriptor - Updating state of connection descriptor. MqttClientId = java-test, expectedState = SENDACK, newState = ESTABLISHED.
14:49:46.641 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The CONNECT message has been processed. CId=java-test, username=null success=true
14:49:46.677 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler - Processing MQTT Inbound handler message, type=SUBSCRIBE
14:49:46.678 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Subscribe] [[id: 0xdd7a195a, L:/10.191.5.110:1883 - R:/10.191.18.10:11043]] msg: MqttSubscribeMessage[fixedHeader=MqttFixedHeader[messageType=SUBSCRIBE, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=42], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@1a9d4859], payload=MqttSubscribePayload[MqttTopicSubscription[topicFilter=persistent://public/default/java-mqtt, option=SubscriptionOption[qos=AT_LEAST_ONCE, noLocal=false, retainAsPublished=false, retainHandling=SEND_AT_SUBSCRIBE]]]]
14:49:46.688 [pulsar-27-1] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Trying to acquire ownership of public/default/0x80000000_0xc0000000
14:49:46.701 [pulsar-ordered-OrderedExecutor-5-0-EventThread] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Successfully acquired ownership of /namespace/public/default/0x80000000_0xc0000000
14:49:46.701 [pulsar-ordered-OrderedExecutor-5-0-EventThread] INFO io.streamnative.pulsar.handlers.amqp.ConnectionContainer - ConnectionContainer [onLoad] namespaceBundle: public/default/0x80000000_0xc0000000, brokerPort: 6650
14:49:46.711 [pulsar-ordered-OrderedExecutor-6-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/java-mqtt
14:49:46.737 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x8e6e3d11, L:/127.0.0.1:35090 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.737 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x8e6e3d11, L:/127.0.0.1:35090 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.739 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.739 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x2f5ae5ef, L:/127.0.0.1:3181 - R:/127.0.0.1:35090]
14:49:46.744 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x9370468b, L:/127.0.0.1:35092 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.744 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x9370468b, L:/127.0.0.1:35092 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.745 [metadata-store-32-1] INFO io.streamnative.pulsar.handlers.kop.KafkaProtocolHandler - get owned topic list when onLoad bundle public/default/0x80000000_0xc0000000, topic size 1
14:49:46.758 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.758 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xc57a44a1, L:/127.0.0.1:3181 - R:/127.0.0.1:35102]
14:49:46.760 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x4284ac2f, L:/127.0.0.1:35094 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.760 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x4284ac2f, L:/127.0.0.1:35094 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.763 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.763 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xb6c5ad5f, L:/127.0.0.1:3181 - R:/127.0.0.1:35094]
14:49:46.764 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.764 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x4bc4f487, L:/127.0.0.1:3181 - R:/127.0.0.1:35096]
14:49:46.764 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.764 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.765 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x0e3d2585, L:/127.0.0.1:3181 - R:/127.0.0.1:35092]
14:49:46.765 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x28467294, L:/127.0.0.1:3181 - R:/127.0.0.1:35098]
14:49:46.765 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.765 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xd41ce7c5, L:/127.0.0.1:3181 - R:/127.0.0.1:35100]
14:49:46.767 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x61963c27, L:/127.0.0.1:35096 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.767 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x61963c27, L:/127.0.0.1:35096 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.767 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.767 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x699af936, L:/127.0.0.1:3181 - R:/127.0.0.1:35106]
14:49:46.769 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.770 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x64ce7dad, L:/127.0.0.1:3181 - R:/127.0.0.1:35104]
14:49:46.772 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xfc621744, L:/127.0.0.1:35106 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.772 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xfc621744, L:/127.0.0.1:35106 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.772 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xf3179d21, L:/127.0.0.1:35112 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.772 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xf3179d21, L:/127.0.0.1:35112 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.773 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x57343bfb, L:/127.0.0.1:35102 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.773 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x57343bfb, L:/127.0.0.1:35102 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.774 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x5dc6f9ea, L:/127.0.0.1:35100 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.774 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.774 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x5dc6f9ea, L:/127.0.0.1:35100 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.774 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x333436f2, L:/127.0.0.1:3181 - R:/127.0.0.1:35118]
14:49:46.774 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xd7f474a4, L:/127.0.0.1:35104 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.774 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xd7f474a4, L:/127.0.0.1:35104 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.774 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.774 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xf10ca5c4, L:/127.0.0.1:3181 - R:/127.0.0.1:35116]
14:49:46.774 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.774 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.774 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.774 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xb44b44f1, L:/127.0.0.1:3181 - R:/127.0.0.1:35110]
14:49:46.774 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x9ad42c39, L:/127.0.0.1:3181 - R:/127.0.0.1:35112]
14:49:46.774 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xd43b8080, L:/127.0.0.1:3181 - R:/127.0.0.1:35114]
14:49:46.776 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x0220f6ef, L:/127.0.0.1:35116 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.775 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x4f978a26, L:/127.0.0.1:35098 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.776 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x0220f6ef, L:/127.0.0.1:35116 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.776 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x4f978a26, L:/127.0.0.1:35098 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.776 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.776 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xdcf2b3c5, L:/127.0.0.1:3181 - R:/127.0.0.1:35108]
14:49:46.776 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x221f2384, L:/127.0.0.1:35114 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.776 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x221f2384, L:/127.0.0.1:35114 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.776 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x688f9ee1, L:/127.0.0.1:35108 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.776 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x688f9ee1, L:/127.0.0.1:35108 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.776 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x1dc1a445, L:/127.0.0.1:35118 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.776 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x161c1f4e, L:/127.0.0.1:35110 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.776 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side
14:49:46.776 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x161c1f4e, L:/127.0.0.1:35110 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.776 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xf1443ab4, L:/127.0.0.1:3181 - R:/127.0.0.1:35120]
14:49:46.778 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x1dc1a445, L:/127.0.0.1:35118 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.780 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x3fbaa8d4, L:/127.0.0.1:35120 - R:127.0.0.1/127.0.0.1:3181]
14:49:46.780 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x3fbaa8d4, L:/127.0.0.1:35120 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS}
14:49:46.801 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO com.scurrilous.circe.checksum.Crc32cIntChecksum - SSE4.2 CRC32C provider initialized
14:49:46.804 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Creating ledger, metadata: {component=[109, 97, 110, 97, 103, 101, 100, 45, 108, 101, 100, 103, 101, 114], pulsar/managed-ledger=[112, 117, 98, 108, 105, 99, 47, 100, 101, 102, 97, 117, 108, 116, 47, 112, 101, 114, 115, 105, 115, 116, 101, 110, 116, 47, 106, 97, 118, 97, 45, 109, 113, 116, 116], application=[112, 117, 108, 115, 97, 114]} - metadata ops timeout : 60 seconds
14:49:46.811 [main-EventThread] INFO org.apache.bookkeeper.client.LedgerCreateOp - Ensemble: [127.0.0.1:3181] for ledger: 644
14:49:46.812 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Created ledger 644
14:49:46.815 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Loading cursor java-test
14:49:46.816 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/java-mqtt] Recovering from bookkeeper ledger cursor: java-test
14:49:46.816 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/java-mqtt] Cursor java-test recovered to position 234:-1
14:49:46.818 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Recovery for cursor java-test completed. pos=234:-1 -- todo=0
14:49:46.818 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - [public/default/persistent/java-mqtt] Successfully initialize managed ledger
14:49:46.819 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.pulsar.broker.service.AbstractTopic - Disabling publish throttling for persistent://public/default/java-mqtt
14:49:46.819 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/java-mqtt] There are no replicated subscriptions on the topic
14:49:46.820 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/java-mqtt - dedup is disabled
14:49:46.825 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending SUBACK message MqttSubAckMessage[fixedHeader=MqttFixedHeader[messageType=SUBACK, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=0], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@1a9d4859], payload=MqttSubAckPayload[reasonCodes=[1]]] to java-test
14:49:46.830 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler - Processing MQTT Inbound handler message, type=PUBLISH
14:49:46.830 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Publish] [[id: 0xdd7a195a, L:/10.191.5.110:1883 - R:/10.191.18.10:11043]] msg: MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=51], variableHeader=MqttPublishVariableHeader[topicName=persistent://public/default/java-mqtt, packetId=2], payload=PooledSlicedByteBuf(ridx: 0, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 53, widx: 53, cap: 8192))]
14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.utils.MessagePublishContext - Success write topic: persistent://public/default/java-mqtt, ledgerId: 644, entryId: 0. triggered send callback.
14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.support.Qos1PublishHandler - [persistent://public/default/java-mqtt] Write MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=51], variableHeader=MqttPublishVariableHeader[topicName=persistent://public/default/java-mqtt, packetId=2], payload=PooledSlicedByteBuf(ridx: 0, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 53, widx: 53, cap: 8192))] to Pulsar topic succeed.
14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.support.Qos1PublishHandler - [persistent://public/default/java-mqtt] Send Pub Ack 2 to java-test
14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.ConnectionDescriptorStore - Sending PUBACK message CId=<java-test>, messageId=2
14:49:49.000 [pulsar-web-63-6] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [08/Sep/2021:14:49:48 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1954 "-" "Pulsar-Java-v2.8.0" 7
14:49:49.006 [pulsar-web-63-5] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [08/Sep/2021:14:49:49 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1954 "-" "Pulsar-Java-v2.8.0" 3
from mop.
I've add
- name: io.streamnative.pulsar.handlers.mqtt level: debug additivity: false AppenderRef: - ref: Console
and reexecute the test.
14:49:46.630 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler - Processing MQTT Inbound handler message, type=CONNECT 14:49:46.631 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - process CONNECT message. CId=java-test, username=null 14:49:46.632 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Authentication is disabled, allowing client. CId=java-test, username=null 14:49:46.636 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Configuring connection. CId=java-test 14:49:46.637 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connection has been configured CId=java-test, keepAlive=30, cleanSession=true, idleTime=45 14:49:46.638 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending connect ACK. CId=java-test 14:49:46.638 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.ConnectionDescriptor - Updating state of connection descriptor. MqttClientId = java-test, expectedState = DISCONNECTED, newState = SENDACK. 14:49:46.640 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The connect ACK has been sent. CId=java-test 14:49:46.640 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.ConnectionDescriptor - Updating state of connection descriptor. MqttClientId = java-test, expectedState = SENDACK, newState = ESTABLISHED. 14:49:46.641 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - The CONNECT message has been processed. CId=java-test, username=null success=true 14:49:46.677 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler - Processing MQTT Inbound handler message, type=SUBSCRIBE 14:49:46.678 [pulsar-io-29-3] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Subscribe] [[id: 0xdd7a195a, L:/10.191.5.110:1883 - R:/10.191.18.10:11043]] msg: MqttSubscribeMessage[fixedHeader=MqttFixedHeader[messageType=SUBSCRIBE, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=42], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@1a9d4859], payload=MqttSubscribePayload[MqttTopicSubscription[topicFilter=persistent://public/default/java-mqtt, option=SubscriptionOption[qos=AT_LEAST_ONCE, noLocal=false, retainAsPublished=false, retainHandling=SEND_AT_SUBSCRIBE]]]] 14:49:46.688 [pulsar-27-1] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Trying to acquire ownership of public/default/0x80000000_0xc0000000 14:49:46.701 [pulsar-ordered-OrderedExecutor-5-0-EventThread] INFO org.apache.pulsar.broker.namespace.OwnershipCache - Successfully acquired ownership of /namespace/public/default/0x80000000_0xc0000000 14:49:46.701 [pulsar-ordered-OrderedExecutor-5-0-EventThread] INFO io.streamnative.pulsar.handlers.amqp.ConnectionContainer - ConnectionContainer [onLoad] namespaceBundle: public/default/0x80000000_0xc0000000, brokerPort: 6650 14:49:46.711 [pulsar-ordered-OrderedExecutor-6-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - Opening managed ledger public/default/persistent/java-mqtt 14:49:46.737 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x8e6e3d11, L:/127.0.0.1:35090 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.737 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x8e6e3d11, L:/127.0.0.1:35090 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.739 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.739 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x2f5ae5ef, L:/127.0.0.1:3181 - R:/127.0.0.1:35090] 14:49:46.744 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x9370468b, L:/127.0.0.1:35092 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.744 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x9370468b, L:/127.0.0.1:35092 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.745 [metadata-store-32-1] INFO io.streamnative.pulsar.handlers.kop.KafkaProtocolHandler - get owned topic list when onLoad bundle public/default/0x80000000_0xc0000000, topic size 1 14:49:46.758 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.758 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xc57a44a1, L:/127.0.0.1:3181 - R:/127.0.0.1:35102] 14:49:46.760 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x4284ac2f, L:/127.0.0.1:35094 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.760 [pulsar-io-29-1] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x4284ac2f, L:/127.0.0.1:35094 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.763 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.763 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xb6c5ad5f, L:/127.0.0.1:3181 - R:/127.0.0.1:35094] 14:49:46.764 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.764 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x4bc4f487, L:/127.0.0.1:3181 - R:/127.0.0.1:35096] 14:49:46.764 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.764 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.765 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x0e3d2585, L:/127.0.0.1:3181 - R:/127.0.0.1:35092] 14:49:46.765 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x28467294, L:/127.0.0.1:3181 - R:/127.0.0.1:35098] 14:49:46.765 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.765 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xd41ce7c5, L:/127.0.0.1:3181 - R:/127.0.0.1:35100] 14:49:46.767 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x61963c27, L:/127.0.0.1:35096 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.767 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x61963c27, L:/127.0.0.1:35096 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.767 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.767 [bookie-io-1-3] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x699af936, L:/127.0.0.1:3181 - R:/127.0.0.1:35106] 14:49:46.769 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.770 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x64ce7dad, L:/127.0.0.1:3181 - R:/127.0.0.1:35104] 14:49:46.772 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xfc621744, L:/127.0.0.1:35106 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.772 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xfc621744, L:/127.0.0.1:35106 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.772 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xf3179d21, L:/127.0.0.1:35112 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.772 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xf3179d21, L:/127.0.0.1:35112 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.773 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x57343bfb, L:/127.0.0.1:35102 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.773 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x57343bfb, L:/127.0.0.1:35102 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.774 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x5dc6f9ea, L:/127.0.0.1:35100 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.774 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.774 [pulsar-io-29-8] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x5dc6f9ea, L:/127.0.0.1:35100 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.774 [bookie-io-1-1] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x333436f2, L:/127.0.0.1:3181 - R:/127.0.0.1:35118] 14:49:46.774 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0xd7f474a4, L:/127.0.0.1:35104 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.774 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0xd7f474a4, L:/127.0.0.1:35104 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.774 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.774 [bookie-io-1-8] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xf10ca5c4, L:/127.0.0.1:3181 - R:/127.0.0.1:35116] 14:49:46.774 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.774 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.774 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.774 [bookie-io-1-5] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xb44b44f1, L:/127.0.0.1:3181 - R:/127.0.0.1:35110] 14:49:46.774 [bookie-io-1-6] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0x9ad42c39, L:/127.0.0.1:3181 - R:/127.0.0.1:35112] 14:49:46.774 [bookie-io-1-7] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xd43b8080, L:/127.0.0.1:3181 - R:/127.0.0.1:35114] 14:49:46.776 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x0220f6ef, L:/127.0.0.1:35116 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.775 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x4f978a26, L:/127.0.0.1:35098 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.776 [pulsar-io-29-2] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x0220f6ef, L:/127.0.0.1:35116 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.776 [pulsar-io-29-6] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x4f978a26, L:/127.0.0.1:35098 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.776 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.776 [bookie-io-1-4] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xdcf2b3c5, L:/127.0.0.1:3181 - R:/127.0.0.1:35108] 14:49:46.776 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x221f2384, L:/127.0.0.1:35114 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.776 [pulsar-io-29-5] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x221f2384, L:/127.0.0.1:35114 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.776 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x688f9ee1, L:/127.0.0.1:35108 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.776 [pulsar-io-29-7] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x688f9ee1, L:/127.0.0.1:35108 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.776 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x1dc1a445, L:/127.0.0.1:35118 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.776 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x161c1f4e, L:/127.0.0.1:35110 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.776 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.AuthHandler - Authentication success on server side 14:49:46.776 [pulsar-io-29-3] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x161c1f4e, L:/127.0.0.1:35110 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.776 [bookie-io-1-2] INFO org.apache.bookkeeper.proto.BookieRequestHandler - Channel connected [id: 0xf1443ab4, L:/127.0.0.1:3181 - R:/127.0.0.1:35120] 14:49:46.778 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x1dc1a445, L:/127.0.0.1:35118 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.780 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - Successfully connected to bookie: 127.0.0.1:3181 [id: 0x3fbaa8d4, L:/127.0.0.1:35120 - R:127.0.0.1/127.0.0.1:3181] 14:49:46.780 [pulsar-io-29-4] INFO org.apache.bookkeeper.proto.PerChannelBookieClient - connection [id: 0x3fbaa8d4, L:/127.0.0.1:35120 - R:127.0.0.1/127.0.0.1:3181] authenticated as BookKeeperPrincipal{ANONYMOUS} 14:49:46.801 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO com.scurrilous.circe.checksum.Crc32cIntChecksum - SSE4.2 CRC32C provider initialized 14:49:46.804 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Creating ledger, metadata: {component=[109, 97, 110, 97, 103, 101, 100, 45, 108, 101, 100, 103, 101, 114], pulsar/managed-ledger=[112, 117, 98, 108, 105, 99, 47, 100, 101, 102, 97, 117, 108, 116, 47, 112, 101, 114, 115, 105, 115, 116, 101, 110, 116, 47, 106, 97, 118, 97, 45, 109, 113, 116, 116], application=[112, 117, 108, 115, 97, 114]} - metadata ops timeout : 60 seconds 14:49:46.811 [main-EventThread] INFO org.apache.bookkeeper.client.LedgerCreateOp - Ensemble: [127.0.0.1:3181] for ledger: 644 14:49:46.812 [BookKeeperClientWorker-OrderedExecutor-0-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Created ledger 644 14:49:46.815 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Loading cursor java-test 14:49:46.816 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/java-mqtt] Recovering from bookkeeper ledger cursor: java-test 14:49:46.816 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedCursorImpl - [public/default/persistent/java-mqtt] Cursor java-test recovered to position 234:-1 14:49:46.818 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl - [public/default/persistent/java-mqtt] Recovery for cursor java-test completed. pos=234:-1 -- todo=0 14:49:46.818 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl - [public/default/persistent/java-mqtt] Successfully initialize managed ledger 14:49:46.819 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.pulsar.broker.service.AbstractTopic - Disabling publish throttling for persistent://public/default/java-mqtt 14:49:46.819 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/java-mqtt] There are no replicated subscriptions on the topic 14:49:46.820 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO org.apache.pulsar.broker.service.BrokerService - Created topic persistent://public/default/java-mqtt - dedup is disabled 14:49:46.825 [bookkeeper-ml-scheduler-OrderedScheduler-3-0] INFO io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - Sending SUBACK message MqttSubAckMessage[fixedHeader=MqttFixedHeader[messageType=SUBACK, isDup=false, qosLevel=AT_MOST_ONCE, isRetain=false, remainingLength=0], variableHeader=MqttMessageIdAndPropertiesVariableHeader[messageId=1, properties=io.netty.handler.codec.mqtt.MqttProperties@1a9d4859], payload=MqttSubAckPayload[reasonCodes=[1]]] to java-test 14:49:46.830 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler - Processing MQTT Inbound handler message, type=PUBLISH 14:49:46.830 [pulsar-io-29-3] DEBUG io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [Publish] [[id: 0xdd7a195a, L:/10.191.5.110:1883 - R:/10.191.18.10:11043]] msg: MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=51], variableHeader=MqttPublishVariableHeader[topicName=persistent://public/default/java-mqtt, packetId=2], payload=PooledSlicedByteBuf(ridx: 0, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 53, widx: 53, cap: 8192))] 14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.utils.MessagePublishContext - Success write topic: persistent://public/default/java-mqtt, ledgerId: 644, entryId: 0. triggered send callback. 14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.support.Qos1PublishHandler - [persistent://public/default/java-mqtt] Write MqttPublishMessage[fixedHeader=MqttFixedHeader[messageType=PUBLISH, isDup=false, qosLevel=AT_LEAST_ONCE, isRetain=false, remainingLength=51], variableHeader=MqttPublishVariableHeader[topicName=persistent://public/default/java-mqtt, packetId=2], payload=PooledSlicedByteBuf(ridx: 0, widx: 10, cap: 10/10, unwrapped: PooledUnsafeDirectByteBuf(ridx: 53, widx: 53, cap: 8192))] to Pulsar topic succeed. 14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.support.Qos1PublishHandler - [persistent://public/default/java-mqtt] Send Pub Ack 2 to java-test 14:49:46.866 [BookKeeperClientWorker-OrderedExecutor-0-0] DEBUG io.streamnative.pulsar.handlers.mqtt.ConnectionDescriptorStore - Sending PUBACK message CId=<java-test>, messageId=2 14:49:49.000 [pulsar-web-63-6] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [08/Sep/2021:14:49:48 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1954 "-" "Pulsar-Java-v2.8.0" 7 14:49:49.006 [pulsar-web-63-5] INFO org.eclipse.jetty.server.RequestLog - 127.0.0.1 - - [08/Sep/2021:14:49:49 +0800] "GET /admin/v2/persistent/public/functions/coordinate/stats?getPreciseBacklog=false&subscriptionBacklogSize=false HTTP/1.1" 200 1954 "-" "Pulsar-Java-v2.8.0" 3
The last four lines show the messages have been published.
from mop.
The log shows that everything goes well.
from mop.
@Technoboy-
Yes, the message publish succeeded, so I can receive the message by pulsar consumer.
But the mqtt consumer cannot receive the message. It would stay backlog.
I'm curious about the subscription type. Is 'None' correct when using mop?
What is the default subscrption type in mop?
from mop.
@Technoboy-
Yes, the message publish succeeded, so I can receive the message by pulsar consumer.
But the mqtt consumer cannot receive the message. It would stay backlog.I'm curious about the subscription type. Is 'None' correct when using mop?
What is the default subscrption type in mop?
Did you open the pulsar consumer with mqtt consumer at the same time ?
from mop.
The default subscription mode is Share
. The message may be received by pulsar consumer, and let the mqtt consumer blocking.
from mop.
@Technoboy-
Yes, the message publish succeeded, so I can receive the message by pulsar consumer.
But the mqtt consumer cannot receive the message. It would stay backlog.
I'm curious about the subscription type. Is 'None' correct when using mop?
What is the default subscrption type in mop?Did you open the pulsar consumer with mqtt consumer at the same time ?
No, just the mqtt consumer. I've tried to use both but I thought the message might be sent to the pulsar consumer only so I turned it off. There's only one subscription in this topic.
But no consumers are shown.
from mop.
Could you have a try the newest version of mop ?
You can clone the repo to your local and build a nar.
from mop.
Could you have a try the newest version of mop ?
You can clone the repo to your local and build a nar.
I do build the nar locally.
I just tried building a new one but it was the same.
I'm using the master branch.
from mop.
Could you have a try the newest version of mop ?
You can clone the repo to your local and build a nar.I do build the nar locally.
I just tried building a new one but it was the same.
I'm using the master branch.
It's really a bad news. Could you send me an email for further communication?
from mop.
Have you found the cause of this problem
@yasu1209
from mop.
Have you found the cause of this problem
@yasu1209
I've tried again today but still cannot figure it out.
from mop.
@Technoboy-
I tried downgrading pulsar to 2.6.1 and 2.7.3 and ran the test code.
It turned out
09:10:31.496 [pulsar-io-50-8] ERROR io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl - [java-test] Failed to process MQTT subscribe.
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: org/apache/pulsar/common/api/proto/CommandSubscribe$InitialPosition
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_282]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_282]
at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:673) ~[?:1.8.0_282]
at java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:683) ~[?:1.8.0_282]
at java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2010) [?:1.8.0_282]
at io.streamnative.pulsar.handlers.mqtt.utils.PulsarTopicUtils.getOrCreateSubscription(PulsarTopicUtils.java:71) ~[?:?]
at io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl.lambda$processSubscribe$1(DefaultProtocolMethodProcessorImpl.java:317) ~[?:?]
at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:995) [?:1.8.0_282]
at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2137) [?:1.8.0_282]
at io.streamnative.pulsar.handlers.mqtt.support.DefaultProtocolMethodProcessorImpl.processSubscribe(DefaultProtocolMethodProcessorImpl.java:313) [pulsar-protocol-handler-mqtt-2.9.0-SNAPSHOT.nar-unpacked/:?]
at io.streamnative.pulsar.handlers.mqtt.MQTTInboundHandler.channelRead(MQTTInboundHandler.java:63) [pulsar-protocol-handler-mqtt-2.9.0-SNAPSHOT.nar-unpacked/:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [io.netty-netty-codec-4.1.60.Final.jar:4.1.60.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [io.netty-netty-codec-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [io.netty-netty-handler-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [io.netty-netty-transport-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795) [io.netty-netty-transport-native-epoll-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480) [io.netty-netty-transport-native-epoll-4.1.60.Final.jar:4.1.60.Final]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378) [io.netty-netty-transport-native-epoll-4.1.60.Final.jar:4.1.60.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [io.netty-netty-common-4.1.60.Final.jar:4.1.60.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [io.netty-netty-common-4.1.60.Final.jar:4.1.60.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.60.Final.jar:4.1.60.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_282]
Caused by: java.lang.NoClassDefFoundError: org/apache/pulsar/common/api/proto/CommandSubscribe$InitialPosition
at io.streamnative.pulsar.handlers.mqtt.utils.PulsarTopicUtils.lambda$getOrCreateSubscription$3(PulsarTopicUtils.java:78) ~[?:?]
at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:670) ~[?:1.8.0_282]
which version should I use to map old version pulsar?
from mop.
I switched to v2.7.1 and rebuilt the nar file.
But the nar file is bigger than 2.9.0.
-rw-r--r-- 1 root root 137601899 Sep 10 09:18 pulsar-protocol-handler-mqtt-2.7.1.5-rc-202104301334.nar
-rw-r--r-- 1 root root 5243733 Sep 10 09:05 pulsar-protocol-handler-mqtt-2.9.0-SNAPSHOT.nar
And pulsar 2.7.3 + mop 2.7.1.5-rc succeeded.......
So I built the nar file wrong? 100M+ nar file is necessary?
from mop.
I switched to v2.7.1 and rebuilt the nar file.
But the nar file is bigger than 2.9.0.-rw-r--r-- 1 root root 137601899 Sep 10 09:18 pulsar-protocol-handler-mqtt-2.7.1.5-rc-202104301334.nar -rw-r--r-- 1 root root 5243733 Sep 10 09:05 pulsar-protocol-handler-mqtt-2.9.0-SNAPSHOT.nar
And pulsar 2.7.3 + mop 2.7.1.5-rc succeeded.......
So I built the nar file wrong? 100M+ nar file is necessary?
BTW, can you run the test case of the latest repo successfully in your local ?
from mop.
@Technoboy- @fanyouyong0526
I switched to v2.7.1 and rebuilt the nar file.
But the nar file is bigger than 2.9.0.-rw-r--r-- 1 root root 137601899 Sep 10 09:18 pulsar-protocol-handler-mqtt-2.7.1.5-rc-202104301334.nar -rw-r--r-- 1 root root 5243733 Sep 10 09:05 pulsar-protocol-handler-mqtt-2.9.0-SNAPSHOT.nar
And pulsar 2.7.3 + mop 2.7.1.5-rc succeeded.......
So I built the nar file wrong? 100M+ nar file is necessary?BTW, can you run the test case of the latest repo successfully in your local ?
I ran mvnw clean install
on the last commit of master branch and all tests seem cleared.
from mop.
I encountered the same problem!
env:
local run pulsar-2.8.0 standalone
mop version 2.8.1.0, 2.9.0, 2.8.0.16, all encountered the same problem.
from mop.
Only the following versions are available:
pulsar-2.7.3 + mop-2.7.1.4 succeeded!
from mop.
Related Issues (20)
- Can not support shared subscription
- Connection is null HOT 1
- Flaky-test: SimpleIntegrationTest.testConsumerDisconnectNotMissingMessage
- ping request HOT 2
- IdleStateHandler may be changed when proxy to broker using the same connection HOT 1
- if the connection from proxy to broker is down, it will cause many client connections to be closed HOT 4
- Qos2 Support HOT 2
- memory leak HOT 1
- Topic Grant-Permission Operation caused MQTT Clients Disconnected
- The mqtt plug-in shows that the loading is successful, but ports 5682 and 1833 still fail to listen. HOT 2
- [WIP] MIP-? Introduce new implementation for MoP
- Please redo the lookup. Request is denied: namespace=public/default HOT 2
- OPENSSL_internal:WRONG_VERSION_NUMBER excpetion when using MOP TLS Proxy HOT 1
- MQTT retain publishes do not make it to Pulsar HOT 3
- Readme.md states "only MQTT 3.1.1 supported" but code base seems to indicate MQTT 5 is also supported HOT 1
- LWT does not reach Pulsar topic, short cuts QoSPublishHandlers so Qos nor Retain function properly HOT 2
- Resubscribing on previously unsubscribed topic closes connection HOT 1
- LWT fires on graceful disconnect but not on connection loss HOT 1
- MQTT QOS support level? HOT 1
- Unsubscribed topic, repeatedly kicked out using client connection only. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mop.