Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Bakken committed Oct 25, 2016
2 parents 960cc66 + f0c45d3 commit a5ff1cb
Show file tree
Hide file tree
Showing 24 changed files with 1,962 additions and 1,908 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ ebin/*
test-unchanged.escript
.idea
*.iml
*.dump
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
path = doc
url = https://github.com/basho/riak-erlang-client.git
branch = gh-pages
[submodule "tools"]
path = tools
url = https://github.com/basho/riak-client-tools.git
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
sudo: required
dist: trusty
language: erlang
notifications:
webhooks: http://basho-engbot.herokuapp.com/travis?key=8f07584549e458d4c83728f3397ecbd4368e60a8
email: eng@basho.com
otp_release:
- 19.1
- 18.3
- 17.5
- R16B03
- R15B03
env:
- RIAK_DOWNLOAD_URL=http://s3.amazonaws.com/downloads.basho.com/riak/2.0/2.0.7/ubuntu/trusty/riak_2.0.7-1_amd64.deb
- RIAK_DOWNLOAD_URL=http://s3.amazonaws.com/downloads.basho.com/riak/2.1/2.1.4/ubuntu/trusty/riak_2.1.4-1_amd64.deb
before_script:
- sudo ./tools/travis-ci/riak-install -d "$RIAK_DOWNLOAD_URL"
- sudo ./tools/setup-riak
notifications:
slack:
secure: JVsrhRuWRTQauP7OjSc1XO6+P3eiOZtkjYhU2R53Hn9dK1KmJRBR5MzO1nq6BUs+bViXiAyW0YOoDTWF0eUw5gdd6sqnvx0+mYJVfYDTfbjp46yqj03Nj+J5HZ1KWPM78NSZ8jpZvdwk35ZpHqhsh/zWOY2RYmIVQKLB9EthHLU=
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.PHONY: all clean compile deps distclean release docs
.PHONY: all lint clean compile deps distclean release docs

all: deps compile

lint: xref dialyzer

compile: deps
./rebar compile

Expand All @@ -24,10 +26,10 @@ endif
@echo "==> Tagging version $(VERSION)"
# NB: Erlang client version strings do NOT start with 'v'. Le Sigh.
# validate VERSION and allow pre-releases
@bash ./build/publish $(VERSION) validate
@./tools/build/publish $(VERSION) master validate
@git tag --sign -a "$(VERSION)" -m "riak-erlang-client $(VERSION)" --local-user "$(RELEASE_GPG_KEYNAME)"
@git push --tags
@bash ./build/publish $(VERSION)
@./tools/build/publish $(VERSION) master 'Riak Erlang Client' 'riak-erlang-client'


DIALYZER_APPS = kernel stdlib sasl erts eunit ssl tools crypto \
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Build Status
============

* Master: [![Build Status](https://travis-ci.org/basho/riak-erlang-client.svg?branch=master)](https://travis-ci.org/basho/riak-erlang-client)
* Develop: [![Build Status](https://travis-ci.org/basho/riak-erlang-client.svg?branch=develop)](https://travis-ci.org/basho/riak-erlang-client)


This document assumes that you have already started your Riak cluster. For instructions on that prerequisite, refer to [Installation and Setup](https://wiki.basho.com/Installation-and-Setup.html) in the [Riak Wiki](https://wiki.basho.com). You can also view the Riak Erlang Client EDocs [here](http://basho.github.com/riak-erlang-client/).
Expand Down Expand Up @@ -260,7 +261,7 @@ Note that keylist updates are asynchronous to the object storage primitives, and
4> receive Msg2 \-> Msg2 end.
{87009603,done}

See [`riakc_pb_socket:wait_for_listkeys`](https://github.com/basho/riak-erlang-client/blob/master/src/riakc_pb_socket.erl#L1087) for an example of receiving.
See [`riakc_utils:wait_for_list`](https://github.com/basho/riak-erlang-client/blob/develop/src/riakc_utils.erl) for a function to receive data.

Bucket Properties
=================
Expand Down Expand Up @@ -664,12 +665,12 @@ CREATE TABLE GeoCheckin

### Store TS Data

To write data to your table, put the data in a list, and use the `riakc_ts:put/3` function. Please ensure the the order of the data is the same as the table definition.
To write data to your table, put the data in a list, and use the `riakc_ts:put/3` function. Please ensure the the order of the data is the same as the table definition, and note that each row is a tuple of values corresponding to the columns in the table.


```erlang
{ok, Pid} = riakc_pb_socket:start_link("myriakdb.host", 10017).
riakc_ts:put(Pid, "GeoCheckin", [[<<"family1">>, <<"series1">>, 1234567, <<"hot">>, 23.5], [<<"family2">>, <<"series99">>, 1234567, <<"windy">>, 19.8]]).
riakc_ts:put(Pid, "GeoCheckin", [{<<"family1">>, <<"series1">>, 1234567, <<"hot">>, 23.5}, {<<"family2">>, <<"series99">>, 1234567, <<"windy">>, 19.8}]).
```

### Query TS Data
Expand Down Expand Up @@ -736,6 +737,7 @@ This is not a comprehensive list, please see the commit history.
* [Kelly McLaughlin](https://github.com/kellymclaughlin)
* [Kevin Smith](https://github.com/kevsmith)
* [Luc Perkins](https://github.com/lucperkins)
* [Luca Favatella](https://github.com/lucafavatella)
* [Lukasz Milewski](https://github.com/milek)
* [Luke Bakken](https://github.com/lukebakken)
* [Mark Phillips](https://github.com/phips)
Expand Down
8 changes: 5 additions & 3 deletions RELNOTES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Release Notes
=============

* [2.4.1](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.4.1)
* [`2.5.0`](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.5.0)
* Adds HyperLogLog CRDT data type support
* [`2.4.1`](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.4.1)
* OTP 19 support via updated dependencies and a few platform defines
* [2.4.0](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.4.0)
* [`2.4.0`](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.4.0)
* This release merges in the Riak timeseries code base from the `2.3.1-timeseries` and `2.3.2-timeseries` releases.
* [2.1.2](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.1.2)
* [`2.1.2`](https://github.com/basho/riak-erlang-client/issues?q=milestone%3Ariak-erlang-client-2.1.2)
* OTP 18 support
* Fix processing of response from Riak when Riak generates an object's key [PR](https://github.com/basho/riak-erlang-client/pull/289)
157 changes: 0 additions & 157 deletions build/publish

This file was deleted.

26 changes: 0 additions & 26 deletions buildbot/Makefile

This file was deleted.

32 changes: 0 additions & 32 deletions buildbot/add_to_advanced_config

This file was deleted.

29 changes: 0 additions & 29 deletions buildbot/crdt-setup

This file was deleted.

2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]}.

{deps, [
{riak_pb, ".*", {git, "git://github.com/basho/riak_pb", {branch, "develop-2.2"}}}
{riak_pb, ".*", {git, "https://github.com/basho/riak_pb", {tag, "2.2.0.0"}}}
]}.

{edoc_opts, [
Expand Down
2 changes: 2 additions & 0 deletions src/riakc_map.erl
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ erase(Key, #map{removes=R}=M) ->
%% it will be initialized to the empty value for its type before being
%% passed to the function.
-spec update(key(), update_fun(), crdt_map()) -> crdt_map().
update({_Name, hll}, _Fun, _M) ->
erlang:error(badarg, ["maps may not contain hll datatype"]);
update(Key, Fun, #map{updates=U}=M) ->
%% In order, search for key in 1) batched updates, then 2) values
%% taken from Riak, and otherwise 3) create a new, empty data type
Expand Down
Loading

0 comments on commit a5ff1cb

Please sign in to comment.