diff --git a/.github/workflows/pr_test.yml b/.github/workflows/pr_test.yml index d47af31c9..8a6eb83c4 100644 --- a/.github/workflows/pr_test.yml +++ b/.github/workflows/pr_test.yml @@ -4,9 +4,11 @@ on: pull_request: branches: - master + - branch-* push: branches: - master + - branch-* jobs: build: diff --git a/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/MQTTProtocolHandler.java b/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/MQTTProtocolHandler.java index 81d8308fc..24d1cb46d 100644 --- a/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/MQTTProtocolHandler.java +++ b/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/MQTTProtocolHandler.java @@ -100,7 +100,7 @@ public void start(BrokerService brokerService) { proxyConfig.setMqttHeartBeat(mqttConfig.getHeartBeat()); proxyConfig.setMqttProxyPort(mqttConfig.getMqttProxyPort()); proxyConfig.setBrokerServiceURL("pulsar://" - + ServiceConfigurationUtils.getAppliedAdvertisedAddress(mqttConfig) + + ServiceConfigurationUtils.getAppliedAdvertisedAddress(mqttConfig, true) + ":" + mqttConfig.getBrokerServicePort().get()); proxyConfig.setMqttAuthenticationEnabled(mqttConfig.isMqttAuthenticationEnabled()); proxyConfig.setMqttAuthenticationMethods(mqttConfig.getMqttAuthenticationMethods()); diff --git a/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/support/MQTTConsumer.java b/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/support/MQTTConsumer.java index c4a3876ed..42f9f41ca 100644 --- a/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/support/MQTTConsumer.java +++ b/mqtt-impl/src/main/java/io/streamnative/pulsar/handlers/mqtt/support/MQTTConsumer.java @@ -60,7 +60,7 @@ public MQTTConsumer(Subscription subscription, String mqttTopicName, String puls OutstandingPacketContainer outstandingPacketContainer) throws BrokerServiceException { super(subscription, CommandSubscribe.SubType.Shared, pulsarTopicName, 0, 0, consumerName, 0, cnx, - "", null, false, CommandSubscribe.InitialPosition.Latest, null); + "", null, false, CommandSubscribe.InitialPosition.Latest, null, null); this.pulsarTopicName = pulsarTopicName; this.mqttTopicName = mqttTopicName; this.cnx = cnx; diff --git a/pom.xml b/pom.xml index 9de1e0b34..76fd32629 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ 2.22.0 6.14.3 4.0.2 - 2.8.0 + 2.8.0.7 4.1.66.Final 2.13.3 1.18.4 @@ -66,7 +66,7 @@ - org.apache.pulsar + io.streamnative pulsar-broker ${pulsar.version} provided diff --git a/tests/pom.xml b/tests/pom.xml index 2423db3c4..f1ab1cc71 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -35,13 +35,13 @@ test - org.apache.pulsar + io.streamnative testmocks ${pulsar.version} test - org.apache.pulsar + io.streamnative pulsar-broker ${pulsar.version} test-jar