Coder Social home page Coder Social logo

cberl's People

Contributors

aliyakamercan avatar aoeking avatar archdevil666 avatar baer-devl avatar divolgin avatar hasithadkr7 avatar hlieberman avatar mcredjay avatar n1rvana avatar nakrakiiya avatar sideshowcoder avatar soup-in-boots avatar teh-cmc avatar vincentdephily avatar wcummings avatar xuthief avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cberl's Issues

metadata flags problem with CB 6.0

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

Crash when unable to connect to server.

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.

Expose lcb_cntl

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.

Is it possible to open connections to two buckets?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.