At least they won't shutdown by themselves, so someone has to force them.
Minimal repro:
const KakfaCache = require('kafka-cache');
process.on('unhandledRejection', (err, p) => {
console.error(err);
console.error(p);
if (err.message === 'This should shut shit down!') process.exit(0);
else process.exit(1);
});
async function run() {
const cache = KakfaCache.create({
kafkaHost: 'kafka:9092',
topic: 'foobar',
readOnly: false
});
await cache.onReady();
throw new Error('This should shut shit down!');
}
run();