Git Product home page Git Product logo

goriakpbc's People

Contributors

3xx0 avatar areski avatar estebarb avatar etix avatar ivaxer avatar jcoene avatar jrallison avatar jstol avatar keli avatar lolsborn avatar mbbroberg avatar mjdsys avatar nargott avatar natural avatar renan avatar theshapguy avatar titanous avatar tpjg avatar vagabond avatar wedancedalot avatar wjossey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goriakpbc's Issues

SetChanWaitTimeout does not use time.Duration

The SetChanWaitTimeout() function uses an int instead of the more appropriate time.Duration. I plan to create a patch that will use time.Duration instead.

I realize this means some existing programs may break if they're using the SetChanWaitTimeout() function.

So, especially @etix , please be aware of this small API change.

Request - forking to Basho for stewardship

Hey @tpjg! This client is excellent. A few of us inside Basho would like to fork it and maintain it as an "official" library. Would you be comfortable with this collaboration? The intention is to continue to share this code in the open.

Travis CI randomly fails in search_test.go on line 40

As pointed out in PR #88, Travis CI randomly fails in search_test.go on line 40. Re-running the tests on Travis can remove the error, and it hasn't been reproducible locally. This needs fixing on Travis, or the test needs work to make it more robust.

Commit 1ed4ed5 breaks the ability for applications to safely initialize models using LoadModel.

Commit 1ed4ed5 breaks the ability for an application to safely create models (for insert) using just LoadModelFrom. Before, even if no tombstone was sent, the model was initialized for use, so the following code would work:

    if err := con.LoadModelFrom("bucket", "key", &model); err != riak.NotFound {
        return err
    } else {
        // Do stuff to the model.
        if err = model.Save(); err != nil {
            return err
        }
    }

I would think this is the desired behaviour, as only calling LoadModelFrom would call into Riak to find tombstones. NewModel doesn't make sense, as different people may want different behaviour when NewModel is called with a key with already existing data (ie should that fail, claiming key exists, silently ignore and overwrite, or silently ignore and not specify an existing Vclock.) Otherwise, an new function is required.

Running map reduce queries on a single bucket

Hello,

I've been searching for a way to run a map/reduce on a single bucket using this library but I haven't found a way to do so.
Does this support such a thing or it needs to be added?

Thanks.

Cannot run example with go 1.1

Trying to run the example:

    package main

    import (
        "fmt"
        "github.com/tpjg/goriakpbc"
    )

    func main() {
        err := riak.ConnectClient("127.0.0.1:8097")
        if err != nil {
            fmt.Println("Cannot connect, is Riak running?")
            return
        }

        bucket, _ := riak.NewBucket("tstriak")
        obj := bucket.New("tstobj")
        obj.ContentType = "application/json"
        obj.Data = []byte("{'field':'value'}")
        obj.Store()

        fmt.Printf("Stored an object in Riak, vclock = %v\n", obj.Vclock)

        client.Close()
    }

Error message on compile:

    # command-line-arguments
    ./riak.go:23: undefined: client

Running a reduce query

Hello,

Is there a way to run reduce queries not just the map ones using this library or does it need to be added?

Thanks.

Search Errors don't seem to be in a usable format

For example, given this sample code:

r, a, b, e := riakClient.Search(&riak.Search{Q: query, Index: "invites"})

if e != nil {
    println(e)
}

with a junk query Dolphins:1 AND Forks:

displays the following error:

(0x6cee80,0xc210098210)

Given that the empty querystring after Forks is not valid (I think), it should output something more to that effect. The command-line search client outputs something like 'badmatch'.

'invoke-rc.d policy rc.d denied execution of restart'

I just pulled this and built it in Docker successfully but running it nets me a 'invoke-rc.d: policy-rc.d denied execution of restart.' error.

Investigation seems to say I need to edit a file on the system, but I don't feel like that's something I should have to mod the Dockerfile manually for...

Console print:
$ docker run bukkit-db
No SSH host key available. Generating one...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
invoke-rc.d: policy-rc.d denied execution of restart.
*** /etc/my_init.d/99_automatic_clustering.sh failed with status 127

RDtMap's?

Are the CRDT Riak maps supported by this library? The functions and type are there (though undocumented), and the only method that appears to create one is .Fetchmap() which when used on an empty key produces a panic:
panic: interface conversion: riak.RDataType is *riak.RDtCounter, not *riak.RDtMap

I've attempted to create my own from the type as well, manually setting the internal Key and Bucket but when I try .Store() it, well, doesn't work, example:

testMap := new(riak.RDtMap)
testMap.Key = "testkey"
testMap.Bucket = bucket
err = testMap.Store()
if err != nil {
    fmt.Fatalln("Could not store RDtMap", err)
}

This produces:
Could not store RDtMap "non-counter operation on default bucket"

Before I dive into this further trying to get it to work, are the CRDT types thought/intended to be supported by this library atm? If so is this a bug or am I missing something obvious?

Riak Search

Is it possible to use Riak Search from this client ?

FR NewObject with nil key

I would like to create a NewObject with no key and have riak assign the key for me. Is that possible?

Go, Riak 2, data types and ORM

It is a bit unclear to me that what Riak/Go versions this library supports. It seems that it supports Go 1.0 and Riak 1.4? Is it a valid assumption that we can drop Go 1.0 support at sometime? (for the model_11.go file, for example)

I'm new to Riak, but I think there's some big changes in Riak 2. What's the support for it? I see that there are the rdatatype.go and related files, but I can't really figure out how they are used. In particular, when using the ORM, are data types used under the hood, or not at all?

I may be missing something here, but any pointers will be appreciated! Thanks :)

Why does RDtFlag have 3 fields?

I'm having trouble understanding the following:

type RDtFlag struct {
    Value    bool
    Enabled  bool
    Disabled bool
}

Flag should just be a boolean, and if that's the case, why do we need Value, Enabled and Disabled? In particular, can it both be Enabled and Disabled, and if not, why do we need two?

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.