Skip to content

Unable to use riak with strongly consistent buckets. #361

@fire

Description

@fire

How do you use riak with strongly consistent buckets? Errors with {:error, "`undefined` is not a supported type"}

# Create a 3 node riak cluster
riak-admin bucket-type create strongly_consistent \ 
  '{"props":{"consistent":true}}'
riak-admin bucket-type activate strongly_consistent
# Test if the cluster is working
curl -v 172.17.0.2:8098/types/strongly_consistent/buckets/test/keys/hello \
  -X PUT \
  -H "Content-type: text/plain" \
  -d "world"
curl -v 172.17.0.2:8098/types/strongly_consistent/buckets/test/keys/hello
# Elixir
{:ok, pid} = Riak.Connection.start_link('172.17.0.2', 8087)
{:ok, #PID<0.399.0>}
iex(3)> :riakc_pb_socket.fetch_type(pid, {"strongly_consistent", "test"}, "hello")
{:error, "`undefined` is not a supported type"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions