Closed
Description
Hello,
I am running into an issue with doing lots of async merge queries. Every now and then I hit a transaction deadlock (code 127). When this happens it seems that both onNext and onError are being triggered.
The main issue is I am using a callback both in onNext and onError:
session
.run(query, params)
.subscribe({
onNext: (record) => callback(null, record.get('c.id')),
onCompleted: () => session.close(),
onError: (err) => callback(err),
});
And node crashes with both callbacks are called.
Metadata
Metadata
Assignees
Labels
No labels