Open ddombrow opened 7 years ago
@ddombrow how would you address this issue? Would you like to send a PR?
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...
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,
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.