Skip to content

onNext and onError being triggered on transaction deadlocks #120

Closed
@brandonburkett

Description

@brandonburkett

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions