Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
/ leveldown Public archive
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Multiple Assertion Failed !! #755

@LRagji

Description

@LRagji

I am using node runtime 12.20.0 & 12.18.3 on a Windows 10 & Mac 10.14.6 machine with following code, which is resulting in lot of Assertion Failed Messages:

var level = require('level-party')
var db = level(__dirname + '/data', { keyEncoding: 'binary', valueEncoding: 'json' })
const start = Buffer.allocUnsafe(8);
start.writeBigInt64BE(1n, 0);
const end = Buffer.allocUnsafe(8);
end.writeBigInt64BE(2n, 0);
let x = new Promise((a, r) => {
    db.createReadStream({ gte: start, lte: start })
        .on('data', function (data) {
            console.log(data.key, '=', data.value)
        })
        .on('error', function (err) {
            console.log('Oh my!', err)
            r();
        })
        .on('close', function () {
            console.log('Stream closed')
            a();
        })
        .on('end', function () {
            console.log('Stream ended')
            a();
        })
});
x.then((e) =>
    console.log("Done")
)

Message 1: Assertion Failed at binding.cc @ 545
Message 2:Assertion Failed at version_set.cc @ 798
Message1
Message2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions