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

fix: MQTT subscribe routing #1403

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -337,12 +337,12 @@ private MqttSubscribeProxy(
this.messages = new Long2ObjectHashMap<>();
routes.forEach(r ->
{
KafkaMessagesProxy messagesProxy = new KafkaMessagesProxy(originId, r, this);
KafkaMessagesProxy messagesProxy = new KafkaMessagesProxy(routedId, r, this);
messages.put(r.order, messagesProxy);
messagesPerTopicKey.put(messagesProxy.topicKey, r.order);
});
final MqttKafkaRouteConfig retainedRoute = routes.get(0);
this.retained = new KafkaRetainedProxy(originId, retainedRoute.id, retainedRoute.retained, this);
this.retained = new KafkaRetainedProxy(routedId, retainedRoute.id, retainedRoute.retained, this);
}

private void onMqttMessage(
Expand Down Expand Up @@ -533,7 +533,7 @@ private void onFiltersChanged(
final long routeOrder = r.order;
if (!messages.containsKey(routeOrder))
{
KafkaMessagesProxy messagesProxy = new KafkaMessagesProxy(originId, r, this);
KafkaMessagesProxy messagesProxy = new KafkaMessagesProxy(routedId, r, this);
messages.put(routeOrder, messagesProxy);
messagesPerTopicKey.put(messagesProxy.topicKey, r.order);
messagesProxy.doKafkaBegin(traceId, authorization, 0, filters);
Expand Down