Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

MQTT Clients cause kafka connector to crash because of $SYS #175

Open
ddombrow opened this issue Apr 20, 2017 · 3 comments
Open

MQTT Clients cause kafka connector to crash because of $SYS #175

ddombrow opened this issue Apr 20, 2017 · 3 comments

Comments

@ddombrow
Copy link

dollar sign is not allowed in kafka topics. Some clients seem to imediately try and publish to a $SYS_blahgdskjhgk_new_clients topic, which crashes mosca/kafka.

@mcollina
Copy link
Collaborator

@ddombrow how would you address this issue? Would you like to send a PR?

@ddombrow
Copy link
Author

Wouldn't mind tackling it, just trying to think how to solve it. ascoltatori controls the topic management but it shouldn't be aware of special topics. I suppose it could accept the concept of a topic formatter function so that you can pass in your own replacer...

@fullergalway
Copy link
Contributor

As a workaround mosca publishing to $SYS topics can be turned off by configuration. The settings below are taken from the kafka example.

     /*
     * avoid publishing to $SYS topics because
     * it violates kafka topic naming convention
     */
    stats: false,
    publishNewClient: false,
    publishClientDisconnect: false,
    publishSubscriptions: false,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants