Level / party

Open a leveldb handle multiple times.
MIT License
146 stars 13 forks source link

Error: Connection to leader lost #8

Closed binarykitchen closed 2 years ago

binarykitchen commented 9 years ago
Error: Connection to leader lost
at Multilevel._clearRequests (/var/www/videomail/staging/source/node_modules/level-party/node_modules/multileveldown/leveldown.js:122:38)
at /var/www/videomail/staging/source/node_modules/level-party/node_modules/multileveldown/leveldown.js:104:10
at f (/var/www/videomail/staging/source/node_modules/once/once.js:17:25)
at onclose (/var/www/videomail/staging/source/node_modules/level-party/node_modules/multileveldown/node_modules/end-of-stream/index.js:43:45)
at emitNone (events.js:72:20)
at emit (events.js:166:7)
at Encoder.destroy (/var/www/videomail/staging/source/node_modules/level-party/node_modules/multileveldown/node_modules/pbs/encoder.js:24:10)
at Duplexify._destroy (/var/www/videomail/staging/source/node_modules/level-party/node_modules/multileveldown/node_modules/duplexify/index.js:187:66)
at /var/www/videomail/staging/source/node_modules/level-party /node_modules/multileveldown/node_modules/duplexify/index.js:174:10
at doNTCallback0 (node.js:408:9)
at process._tickCallback (node.js:337:13)

Not sure what I can do here. Probably a bug in multileveldown?

binarykitchen commented 9 years ago

Any change the error message Error: Connection to leader lost could be improved, mentioning which one leader got lost exactly?

mafintosh commented 9 years ago

Can you reproduce this error?

/m On Tue 30 Jun 2015 at 10:44 Michael Heuberger notifications@github.com wrote:

Any change the error message Error: Connection to leader lost could be improved, mentioning which one leader got lost exactly?

— Reply to this email directly or view it on GitHub https://github.com/substack/level-party/issues/8#issuecomment-117058747.

binarykitchen commented 9 years ago

That's difficult to reproduce. Both hosting parties are complex apps.

Any chance you could improve the error message and add a debug option for now?

binarykitchen commented 6 years ago

Still happening here and really would like to see tips/hints how I can debug this best? cc @mafintosh

vweevers commented 4 years ago

@binarykitchen Is this still an issue, or can it be closed?

GeekBerry commented 4 years ago

Same problem. When i close and reopen it, some times can not open without any error information. And i found MANIFEST-xxxx file which record in CURRENT is lost. I think some thing relate to https://github.com/google/leveldb/issues/79

In the end, is use https://github.com/Level/leveldown#leveldownrepairlocation-callback method to fix the dir, then levelDB can be open again. But i am sure some data were lost cause the method create a dir named lost.

vweevers commented 4 years ago

@GeekBerry which version of level-party are you on?