Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

383 lines (347 sloc) 21.959 kb
1.0.4
-------------
This is a patch release that adds new features and fixes a few minor issues.
New features include support of the Riak /stats command through the IRiakClient
interface (when using HTTP - stats via PB is not supported by Riak), a shutdown()
method in the IRiakClient Interface that cleanly shuts down running threads, and
a new lazyLoadProperties() method for both FetchBucket and WriteBucket that
will eliminate a request to Riak for bucket properties if they're not needed.
**Changes**
cf0ac0e Brian Roach Merge pull request #109 from basho/t46-lazy-bucket-properties
d9f08eb Brian Roach Removed superflous test, added one for fail case Added Test class to AllTests runner Added @since tags to javadoc for new methods in FetchBucket and WriteBucket
437bfa1 Brian Roach Test for LazyBucketProperties
e3d6a4e Brian Roach Changed to using Russell's implementation; overall it's just cleaner and there's an internal state that protects a FutureTask from being run() twice that I wasn't aware of.
93e048c Brian Roach In a fail condition, resetting the AtomicBoolean could create a problem because the CountDownLatch was still at 0. Resetting it to 1 afterward would leave iopen a tiny race condi
24256dd Brian Roach First cut at adding lazy loading of bucket properties.
da98d9a Brian Roach Merge pull request #107 from basho/t44-sybolic-quora-domainbucketbuilder
c3eb030 Brian Roach Added setter methods in the DomainBucketBuilder to accetp symbolic quora. Added test to verify
0da5f82 Brian Roach Merge pull request #104 from basho/BR-add-status
ee66d0f Brian Roach Added new Riak 1.1 stats and also a custom deserializer for some of those that are currently broken and containing the string "undefined" rather than an int value
3449ef7 Brian Roach final style check.
ae754e5 Brian Roach Changes from Russel's comments - Fixed style / formatting - Converted to using Jackson object mapping - eliminated http.response.StatsResponse and its tests as it was no longer n
3cabc61 Russell Brown Merge pull request #106 from basho/rdb_leaking_connections
f1546db Russell Brown Catch more general IOException and close RiakConnection
e29152d Russell Brown Merge pull request #105 from basho/rdb_test_be_output
bfea2b5 Russell Brown Output current test name
d4b1f5d Brian Roach Fixed small bug with NodeStats reviewing my own code.
36f98f2 Brian Roach Added me as a Developer :-D
5625008 Brian Roach Added tests and javadoc
53b8599 Brian Roach final touches. Still need to write tests and a bit more javadoc
d157e22 Brian Roach new files for /stats operation. Decided to change IRiakClient interface to return an Iterable<NodeStats) rather than an interator.
0cff86e Brian Roach initial check in of /stats support. All working, just need to do some testing and think if the interface is sane or not.
083294e Russell Brown Merge branch 'az878_fewer_buckets'
bb9b668 Russell Brown Teardown Link Walk test bucket too
48c1110 Russell Brown Merge remote-tracking branch 'origin/BR-r-greater-then-n-http'
0fadac1 Brian Roach Changed the error check to throw on all 5xx errors, and all 4xx errors except 404 and 412 A number of the operations objects are expecting 404 to come back, and the 412 needs to
54d0675 Russell Brown Make fewer buckets in the itests.
19e8953 Brian Roach Merge pull request #102 from basho/BR-symbolic-quora
ae22370 Brian Roach Delete now works with symbolic quorums I also ended up reverting some eralier changes I made to the classes in com.basho.riak.pbc and pushed the logic up into the ConversionUtil
6aca729 Russell Brown Re-order tests, put timeout tests to end
fe56fdf Brian Roach StoreObject now supports Quorums for w, pw, dw
49ec585 Brian Roach Symbolic quora now work for reads. Existing tests all pass, need to write new tests for checking symbolics
7ae2ce5 Brian Roach Fixed "magic" numbers in Quora, adjusted test to match.
e9affe5 Brian Roach Merge pull request #100 from basho/BR-writebucket-constructor
af139dd Brian Roach Fixed problem where the http client ignored when a 400 Bad Request was returned. Specifically this would cause a fetch with r > n to simply return null as if the k/v simply didn'
e7cd246 Russell Brown Merge pull request #98 from basho/rdb_backwards_compat
7a547a5 Russell Brown Merge pull request #99 from basho/gh92_shutdown_client
1cdee7e Brian Roach The WriteBucket constructor that takes an existing Bucket as a parameter now copies the BucketProperties from that Bucket
a89d334 Russell Brown Fix connection in leak in MapReduceResponseSource
2c4b211 Russell Brown Update bucket properties to be more backwards compatible
7e1b0ff Russell Brown Merge pull request #97 from basho/rdb_b_e_package
7db2616 Russell Brown Stawman commit - make B_E faster / easier for Java
4c7dbb9 Brian Roach Merge pull request #96 from basho/BR-maven-githup-upload
0994584 Brian Roach automated uploads to github of the artifacts
cbe9c6b Brian Roach moved uploading to its own profile due to weirdness with current use of release plugin
feba60c Brian Roach working on automated github uploads during release
01599d3 Brian Roach Merge pull request #82 from basho/hornbeck_artifact
987ec69 Russell Brown Merge pull request #95 from basho/az1091_key_index
8398f90 Russell Brown Add support for $key index
f54c137 pbarry Tidy indentation and add test
089bd3e Sean Cribbs Merge pull request #94 from michaelklishin/master
5a441ef Michael S. Klishin Explain why email notifications on travis-ci.org are disabled and how to learn more
2c40473 Michael S. Klishin Add .travis.yml
24afbbd Brian Roach changed version in README and pom to 1.0.3 and 1.0.4-SNAPSHOT respectively
6639df7 Brian Roach Merge branch '1.0.3'
0450be6 Brian Roach changed to version 1.0.3 (no SNAPSHOT)
8235e08 Brian Roach Added 1.0.3 changelog, and new commiters
f8010a9 Russell Brown Fix whitespace in Niklas' contribution
1fdfbae Niklas Gawell Added store without key functionality to http client
0d26bb1 Brian Roach added instructions for building dependency bundles with maven
b507f22 Brian Roach Reworked bundling into profiles so that when building the library with maven you can choose what to build. By default only the client library .jar is built with no dependencies.
a7f2ac8 pbarry Add shutdown() for graceful pool shutdown
551ef93 pbarry ignore emacs temp files
15cfd28 Brian Roach Fixed deps filename
bb47216 Brian Roach changed the maven build to provide a number of options for us to distribute. Maven will now create:
3a9ff1e Russell Brown Merge pull request #89 from basho/gh-88
e69ff25 Russell Brown Fix http Conversion of DeleteMeta to return the built value (not null)
5f67b84 Russell Brown Merge pull request #86 from basho/zd947_search
ea7a6d9 Russell Brown Remove the search precommit hook from the list of precommit hooks if it is present
fff007c Russell Brown Merge pull request #87 from basho/wrd-spelling-fix
a2d0379 Reid Draper s/NOT/NOTE
f677313 Russell Brown Update JavaDoc for new WriteBucket constructor
3bf5798 Russell Brown Add API for disabling search on a bucket
fc44b95 Russell Brown Merge pull request #84 from basho/no_converter
575ba09 Russell Brown Merge pull request #85 from bretthoerner/master
536c374 Brett Hoerner Bump jackson to 1.9.2
034c2c4 Russell Brown Remove Betbuy test
b21fcfc Russell Brown Detect store/fetch of Riak Objects and don't attempt to convert
b4615d9 Russell Brown Merge pull request #83 from basho/az935_pb_errors
014efee Russell Brown Add backwards compatibile fallback for pre 1.1 Riak
6c7e73c Russell Brown Remove hack to work around PB MapReduce errors difference from HTTP
794b633 Russell Brown Merge pull request #80 from basho/bz1296_mr_failFast
189e1e0 Russell Brown Merge pull request #81 from pramodsadalage/master
258c242 Pramod Update README.org
36cc215 Russell Brown Update ignore to allow xml changes
cc83853 Russell Brown Add assembly to build a jar with deps for non maven users
80a0d7f Russell Brown Merge pull request #79 from basho/bz1299_ts
d847872 Russell Brown Remove RiakObjectTest and move last modified test to TestRiakObject
2f93930 Russell Brown Add validation to MapReduce before execution
5873573 Russell Brown Remove redundant test setup method
2876641 Russell Brown Fix pbc RiakObject timestamp conversion bug
8459ce3 Russell Brown Merge pull request #78 from basho/gh-71
076305d Russell Brown Fix broken from(Config) method in PB client config builder
3025820 Russell Brown Bump pom version
1.0.3
-------------
This is a patch release that fixes a few minor issues. The one
non-trivial change is the fixing of where the client would attempt to
convert Riak Objects to JSON (b21fcfc).
**Changes**
f8010a9 Russell Brown Fix whitespace in Niklas' contribution
1fdfbae Niklas Gawell Added store without key functionality to http client
3a9ff1e Russell Brown Merge pull request #89 from basho/gh-88
e69ff25 Russell Brown Fix http Conversion of DeleteMeta to return the built value (not null)
5f67b84 Russell Brown Merge pull request #86 from basho/zd947_search
ea7a6d9 Russell Brown Remove the search precommit hook from the list of precommit hooks if it is present
fff007c Russell Brown Merge pull request #87 from basho/wrd-spelling-fix
a2d0379 Reid Draper s/NOT/NOTE
f677313 Russell Brown Update JavaDoc for new WriteBucket constructor
3bf5798 Russell Brown Add API for disabling search on a bucket
fc44b95 Russell Brown Merge pull request #84 from basho/no_converter
575ba09 Russell Brown Merge pull request #85 from bretthoerner/master
536c374 Brett Hoerner Bump jackson to 1.9.2
034c2c4 Russell Brown Remove Betbuy test
b21fcfc Russell Brown Detect store/fetch of Riak Objects and don't attempt to convert
b4615d9 Russell Brown Merge pull request #83 from basho/az935_pb_errors
014efee Russell Brown Add backwards compatibile fallback for pre 1.1 Riak
6c7e73c Russell Brown Remove hack to work around PB MapReduce errors difference from HTTP
794b633 Russell Brown Merge pull request #80 from basho/bz1296_mr_failFast
189e1e0 Russell Brown Merge pull request #81 from pramodsadalage/master
258c242 Pramod Update README.org
80a0d7f Russell Brown Merge pull request #79 from basho/bz1299_ts
d847872 Russell Brown Remove RiakObjectTest and move last modified test to TestRiakObject
2f93930 Russell Brown Add validation to MapReduce before execution
5873573 Russell Brown Remove redundant test setup method
2876641 Russell Brown Fix pbc RiakObject timestamp conversion bug
8459ce3 Russell Brown Merge pull request #78 from basho/gh-71
076305d Russell Brown Fix broken from(Config) method in PB client config builder
3025820 Russell Brown Bump pom version
1.0.2
-------------
This is a patch release that fixes a couple of minor bugs.
**Changes**
cf6db11 Correctly split content-type and charset for PB interface bz1288
85b94e7 This change fixes a bug in the Java client where all
commit hooks are added to the pre-commit list; anything incoming in
the post-commit list goes to the pre-commit hook list instead
2ddd975 Add connection timout to pb socket creation bz1275
855493c Fix incorrect encoding of reduce_phase_only_1 arg on fetch index bz1262
0c44b01 Fix incorrect default riak PB port bz1285
1.0.1
-------------
This relase fixes 1 critical and 1 major bug in riak-java-client. The
first is an error in the idle connection reaper that leads to an
infinite loop, the second a bug with the PB client factory which did
not start the idle connection thread before using the pool.
**Changes**
27fa0adfe4 Move connection age check inside connection timeout loop
[bz://1251]
bf0efe0383 Fix factories/tests that did not start up the pool before
using [bz://1252]
c85e98b263 RiakObjects created from link-walking now URLDecode their
keys
1.0
-------------
This version adds 2 new APIs to the riak-java-client whilst
maintaining (for now) backwards compatibility with the 0.14
releases. If you are using the legacy HTTP or PB RiakClient API your
code should still work. Please consider migrating to the new API, the
old API will be deprecated in the next release, and removed the
release after that.
This version replaces the EOL Apache HTTP Client 3x dependancy with
Apache HTTP Client 4.1.1.
Please view the README and this blog post[1] for full details.
There is a new API built around the RawClient interface, a transport
agnostic abstraction. There are two implementation at present that
adapt the legacy clients to the new API. There is some small
performance cost in this, since types must be converted between the
new common API and the older transport specific API, but it is small
(and temporary.)
There is also a second, higher level API, based around the IRiakClient
and Bucket interfaces. This API is a fluent builder based API that
provides abstractions and interfaces for simplifiying aspects of
working with a distributed, fault tolerant database. Of most interest
is a primative ORM (using the excellent Jackson JSON library) and an
interface for encoding conflict resolution strategies.
**Changes**
057c2f2 Merge branch 'az766_store'
9de410b Merge branch 'az771_delete' into az766_store
119544b Merge pull request #58 from basho/az783_api
a098f2c Remove sys.out from test
a3b8ded Change 'retrier' builder methods to 'withRetrier'
f63d0fe Update sibling tests with sleep time to allow bucket props to propagate
e60eeef Make Conflict/Conversion exceptions into RuntimeExceptions
5d43737 Remove duplicate vclock accessor
9e196e6 Make the setting of unsupported bucket properties fail loudly
6e5d39e Add new delete operation parameters
6721172 Add support for conditional store
088cb1d Add support for returning tombstone vclock
5301508 Add new fetch properties
e8ef8ff Merge pull request #51 from basho/bz1203_npe
cbec2a6 Add new 1.0 bucket properties (pr, pw, notfound_ok, basic_quorum)
39005f8 Update documenetation for 2i
95ef7d8 Add property to ignore 2i tests unless they are enabled
d9c6bfb Merge pull request #49 from basho/az493_search
139232b Update README with riak search example
bd1d6e4 Clarify usage for enabling search itests vi argLine
cd67a3f Add secondary index support
dfa0615 Fix NPE when calling store on default domain bucket
1d344e0 Update DEVELOPERS with how to enable search integration tests
0c80180 Remove redundant lib/* files
a0c0091 Merge pull request #48 from michaelklishin/patch-1
608fd6a Fix pbc.ITestMapReduceSearch to use correct port property
d8f0542 Add property control for search tests
4c6fa76 Add support for m/r search input to legacy and new clients
bd5ad43 master now builds 0.15-SNAPSHOT
ebc30a2 Add Riak Search m/r input
55918f6 Merge cadement pr32 to add search m/r to legacy clients
b47c231 Add meaningful exception when listKeys fails
831a465 Add PB client M/R code to read multiphase results
4a7c9e7 robustify pb mapred tests: reduce results may be delivered as multiple messages
087a2af Fix fetchMeta to handle siblings
9567f8f Merge pull request #45 from basho/bz1167_mr_args
b8ab408 Ensure map/reduce function argument is encoded and sent to server
13fdd21 Merge pull request #38 from basho/bz1142_pbc_meta
d53a62a Add JavaDoc and README details for connection acquisition exceptions
ab240a6 Fix incorrect default HTTP port in the HTTPClientConfig builder
e7b8e6a Add finally block to ensure entity always consumed for connection release
966dd5a Add ping to http client, RawClient and IRiakClient
45865ec Add constant for unbounded connection pools
68b002c Add test for content type being stored/retrieved
c8a0452 Add conversion code for user meta and links to pbc converter
d3f0cc9 Merge in fix to broken pbc pool from az481_profile
59cf9a2 Fix connection pool to only consume permits on connection creation
49f2595 Add constant for connection acquire attempt number
1477751 Add a "cluster client"
26d5859 Update version number in pom to indicate minor API change
fa6f20b Replace end of life apache http client 3.1 with 4.1
ccbd831 Merge pull request #35 from basho/bz1125_nval
c706a92 Change expected http code to 400 for n_val violation on delete
95c9646 Add test for RiakConnectionPool
3c9bcac Remove sys.out logging
a0039b6 Add a connection pool for the pbc.RiakClient
bfe3749 Make socket buffer size tunable by programmer and system property
f6f369a Add seed to SecureRandom for generating client id
c6c21bb Modify zero-results m/r test to account for new not_found result
a9dcb4c The last phase of a map/reduce must respect a keep value of false
13b2b14 Add instructions for building against non-default ports/host
06b7518 Add Host/Port param to factory for running itests against remote riak
d593697 Added RiakObject.getLinks() to protocol buffers client
47f1de2 Fix sporadically failing Domain Bucket test
2558f69 The last phase of a m/r query should default to keep=true
1d6ffd2 Add specific checked exception for Map reduce timeout
9d9a74f Fix array index exception for empty m/r result on pb client
9fd4a21 Add list buckets to new API
52cf38b Document new API packages, classes and methods
e643929 Add Link Walking tests for both http and pb clients
5e78743 Daemonise and name KeySource timer thread
8e007c8 Change multipart boundary charset to iso8859_1
e219194 Enforce correct characterset usage when going from byte[] to String
cb2a5c6 Add read quorum parameter to StoreOperation (for fetch before store)
4d59c23 Use Java standard library Callable instead of Command
9f7dd24 Merge pull request #23 from basho/bz1088.
dac9836 Deprecate legacy RiakClient and RiakObject
3cf5012 Remove references to deprecated legacy RiakClient code.
09386d9 Move all HTTP specific code to new client.http package
0c31b83 Add ITest for filters to existing m/r test
b6be99d Add link walking to both HTTP and PB client adapters
04c6755 Add VClock to RiakObject's parsed from link walk multipart response
74f7fa7 Implement MapReduce for new API
849c5ed Make filter name static final
079954c Add RW param to delete operations for HTTP client
57fc57c Add getter for VTag to pbc.RiakObject
1f7abe8 Add getter for lastModified to pbc RiakObject
d3df4ec Add getter for last modified date to pbc RiakObject
2b717d2 Make Multipart parse Java 5 compatible
65e6886 Parse multipart/mixed response entities as byte arrays, not strings.
eba46c4 Merged pull request #21 from codahale/fix-riak-connection-timer.
8d58949 Merge GitHub supplied patch to pr 18
f6ec76a Merged pull request #18 from taichi/unitetestinghost.
fd8d7a5 Make RiakConnection's timer daemon and named.
dbe79b6 bz1071 Fix store to return siblings if returnbody is true
dc20920 Initial commit of a high level Java API for Riak
b27c3b5 Add RW param to delete operations for HTTP client
e719257 get host and ports from System properties.
2b65bab unite RIAK_HOST and RIAK_URL. Hosts.java has test server host name and url.
883073e Incorporate Coda Hale's suggestions into a new API
0.14.1
-------------
This version fixes a few bugs with the protocol buffers client (including one
major crasher with setClientId). It fixes a bug setting max connections per
host which limited the http client to 2 concurrent connections. It fixes a
few encapsulation/thread safety issues. Some API elements have been deprecated
(direct access to RiakObject(s) links and user meta collections, mutation of
RiakLink) in preparation for removal in the next release. Unit and integration
test coverage has been increased to ~70% in preparation for a refactor. Java 5
is now supported.
**Changes**:
d8824e5 Add test to show byte[] value safely encapsulated in RiakObject
0e7d255 Add tests to show RiakObjects internal collections are thread safe
568cab8 Remove calls to deprecated methods from tests
c1e23eb Remove references to sun Base64Encoder/Decoder
79b3f5a Fix Javadoc typo and rename usermeta to userMetaData
35e49c5 Return defensive copy of internal value byte array
ad05279 Fix direct store of byte array
46bb956 Fix sporadically failing vclock test
86b1927 Fix encapsulation/safety issues from direct store of array arguments
825e734 Fix concurrent mutation issue for RiakObject's links
fc3172f Fix typo in README (link to DEVELOPERS.md)
a11206f Merge branch 'bz1040_coverage' - bz 1040
d88abac Add unit tests for pbc MapReduceBuilder - bz 1040
eb3cea9 Remove redundant imports
3eda593 Add integration and unit tests for the protobufs client - bz 1040
bb82e66 Add test for pbc RiakLink - bz 1040
96ac2aa Improve test coverage prior to refactor - bz 1040
cd0104e fix infinite loop in PBC setClientId - bz 1038
3897895 Fix always zero w and dw for PBC put request with RequestMeta
6aaecd8 RiakObject.writeLink(): Fixed bug (using setRequestHeader()
vs. addRequestHeader())
d54dd19 RiakObject.writeToHttpMethod(): Factored link part out; circumventing
problem with long http header lines (MochiWeb apparently has an 8K limit)
1f452b8 Add private constructor to JSONEquals helper class
6215c9f Change internal representation of M/R inputs to LinkedHashMap
ebdb63d Fix tests that depend on order of keys in Map
ff9748c Remove Java 6 only code and annotations
af74421 Add max connections per host to match max connections
2d72f31 updating maven dependency info on README
0.14.0
-------------
This version adds support for the riak protocol buffers interface.
0.11
-------------
This version no longer performs binary to String conversions automatically. All
bucket data is surfaced as byte arrays. Clients will need to either perform
their own string conversions or use the getBodyAsString() method added to the
com.basho.riak.client.response.HttpResponse interface.
0.10-SNAPSHOT
-------------
This version breaks compatibility with Riak releases prior to the pre-0.10
tag. Specifically, it no longer parses link walking results in prior releases.
**Changes**:
* Expect CRLF in multipart (link walking) results
(http://bitbucket.org/basho/riak/changeset/df553e35cc92/)
* RiakClient.getClientId() returns the raw client ID byte[4] rather than String
to avoid charset encoding issues
0.9.1
-------------
First official release of riak-client.
Jump to Line
Something went wrong with that request. Please try again.