wcummings / cberl Goto Github PK
View Code? Open in Web Editor NEWThis project forked from chitika/cberl
NIF based Erlang bindings for Couchbase
License: Other
This project forked from chitika/cberl
NIF based Erlang bindings for Couchbase
License: Other
created a JSON document via CB Console CE
cberl:get crashed in decode_value/2
with badarg in binary_to_term()
metadata flag was 33554438 (33554438 bsr 24 == CBE_JSON)
I don't know where the flag comes from, the CB docs says it is SDK specific
I am a little bit stuck how to improve the flag handling because I don't understand why decode_value is called twice.
commenting out the clause for CBE_RAW serves me as a monkey patch
regards
Peter
Needs setup code for couchbase server, currently only transcoder tests run
This happens when attempting to open a connection to a server that is not up. I believe it also happens when you try to open a connection and specify a bucket that does not exist. It might happen when the server is temporarily out of contact, or has high latency, as the segfault seems to happen instantly. The first case is reproducible, the last case is speculation.
DB not running:
1> cberl:start_link(cberl_default, 5).
Fatal error
Successful connection to default bucket:
2> cberl:start_link(cberl_default, 5, "localhost:8091", "", "", "default").
{ok,<0.36.0>}
Bucket doesn't exist:
1> cberl:start_link(cberl_default, 5, "localhost:8091", "", "", "no-such-bucket").
Fatal error
To be clear when this happens the entire erlang vm crashes.
The Chitika repo is dead, but we should still have those tags so its easy for folks to move over
I started working on this a while ago, shouldn't be a whole lot of work. It will be added as an optional compile-time flag, when its stable it could be automatically enabled on builds which support it.
cntl values will have to be supplied when setting up the pool, changing settings across the pool after will be awkward.
cberl:start_link
is getting bloated, maybe time to start a new interface.
Looking at the source code, it looks like the answer is no. Not sure how libcouchbase handles it, but start_link will take a bucket, but if called again with another bucket it says "already open" or something like that.
Feel free to close this as wontfix if it's out the scope of what you need cberl for.
Mainly want to know if there's a way to do it and I'm missing it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.