We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I sent one-by-one message to the producer, please see my code below,
const producer = new Kafka.Producer( { 'bootstrap.servers': ${process.env.KAFKA_SERVER}, 'sasl.username': ${process.env.KAFKA_USERNAME}, 'sasl.password': ${process.env.KAFKA_PASSWORD}, 'security.protocol': 'sasl_ssl', 'sasl.mechanisms': 'PLAIN', 'client.id': ${process.env.KAFKA_CLIENT_ID}, 'dr_cb': true, 'enable.idempotence': true }, { 'request.required.acks': -1, }, );
${process.env.KAFKA_SERVER}
${process.env.KAFKA_USERNAME}
${process.env.KAFKA_PASSWORD}
${process.env.KAFKA_CLIENT_ID}
producer.setPollInterval(100); producer.connect({}, (err, data) => { if (err) { console.log('CONNECT ERROR: ', err) } }); producer.on('ready', async function () { const key: string = uuid + `-` + providerRefCode + `-` + Date.now(); producer.produce( topic, -1, data, key, Date.now() ); producer.poll(); }); producer.on('delivery-report', function (err, report) { if (err) { console.log('REPORT ERROR: ', JSON.stringify(err)) } producer.disconnect(); }); producer.on('event.error', function (err) { console.error(err); if (err.code == -1) { producer.disconnect(); } }); I found some messages missing from the target database without an error message. How to find the root cause?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I sent one-by-one message to the producer, please see my code below,
const producer = new Kafka.Producer(
{
'bootstrap.servers':
${process.env.KAFKA_SERVER}
,'sasl.username':
${process.env.KAFKA_USERNAME}
,'sasl.password':
${process.env.KAFKA_PASSWORD}
,'security.protocol': 'sasl_ssl',
'sasl.mechanisms': 'PLAIN',
'client.id':
${process.env.KAFKA_CLIENT_ID}
,'dr_cb': true,
'enable.idempotence': true
},
{
'request.required.acks': -1,
},
);
The text was updated successfully, but these errors were encountered: