Elffuss BraidHub

kikocis/java-driver public

697b75f26387 · 16.5 KiBRawPermalink
1CHANGELOG
2=========
3
42.0.9:
5------
6
7- [improvement] Shade Netty dependency (JAVA-538)
8- [improvement] Target schema refreshes more precisely (JAVA-543)
9- [new feature] Add AddressTranslater for EC2 multi-region deployment (JAVA-518)
10- [bug] Don't check rpc_address for control host (JAVA-546)
11- [improvement] Optimize connection use after reconnection (JAVA-505)
12
13
142.0.8:
15------
16
17- [bug] Fix token awareness for case-sensitive keyspaces and tables (JAVA-526)
18- [bug] Check maximum number of values passed to SimpleStatement (JAVA-515)
19- [improvement] Expose the driver version through the API (JAVA-532)
20- [improvement] Optimize session initialization when some hosts are not
21 responsive (JAVA-522)
22
23
242.0.7:
25------
26
27- [bug] Handle null pool in PooledConnection.release (JAVA-449)
28- [improvement] Defunct connection on request timeout (JAVA-425)
29- [improvement] Try next host when we get a SERVER_ERROR (JAVA-426)
30- [bug] Handle race between query timeout and completion (JAVA-449, JAVA-460, JAVA-471)
31- [bug] Fix DCAwareRoundRobinPolicy datacenter auto-discovery (JAVA-496)
32- [bug] Ensure control connection does not trigger concurrent reconnects (JAVA-497)
33- [improvement] Keep trying to reconnect on authentication errors (JAVA-472)
34- [improvement] Expose close method on load balancing policy (JAVA-463)
35- [improvement] Allow load balancing policy to trigger refresh for a single host (JAVA-459)
36- [bug] Expose an API to cancel reconnection attempts (JAVA-493)
37- [bug] Fix NPE when a connection fails during pool construction (JAVA-503)
38- [improvement] Log datacenter name in DCAware policy's init when it is explicitly provided
39 (JAVA-423)
40- [improvement] Shuffle the replicas in TokenAwarePolicy.newQueryPlan (JAVA-504)
41- [improvement] Make schema agreement wait tuneable (JAVA-507)
42- [improvement] Document how to inject the driver metrics into another registry (JAVA-494)
43- [improvement] Add idle timeout to the connection pool (JAVA-419)
44- [bug] LatencyAwarePolicy does not shutdown executor on invocation of close (JAVA-516)
45- [improvement] Throw an exception when DCAwareRoundRobinPolicy is built with
46 an explicit but null or empty local datacenter (JAVA-451).
47- [bug] Fix check for local contact points in DCAware policy's init (JAVA-511)
48- [improvement] Make timeout on saturated pool customizable (JAVA-457)
49- [improvement] Downgrade Guava to 14.0.1 (JAVA-521)
50
51
522.0.6:
53------
54
55- [bug] Check cluster name when connecting to a new node (JAVA-397)
56- [bug] Add missing CAS delete support in QueryBuilder (JAVA-326)
57- [bug] Add collection and data length checks during serialization (JAVA-363)
58- [improvement] Surface number of retries in metrics (JAVA-329)
59- [bug] Do not use a host when no rpc_address found for it (JAVA-428)
60- [improvement] Add ResultSet.wasApplied() for conditional queries (JAVA-358)
61- [bug] Fix negative HostConnectionPool open count (JAVA-349)
62- [improvement] Log more connection details at trace and debug levels (JAVA-436)
63- [bug] Fix cluster shutdown (JAVA-445)
64- [improvement] Expose child policy in chainable load balancing policies (JAVA-439)
65
66
672.0.5:
68------
69
70- [bug] Release connections on ResultSetFuture#cancel (JAVA-407)
71- [bug] Fix handling of SimpleStatement with values in query builder
72 batches (JAVA-393)
73- [bug] Ensure pool is properly closed in onDown (JAVA-417)
74- [bug] Fix tokenMap initialization at startup (JAVA-415)
75- [bug] Avoid deadlock on close (JAVA-418)
76
77
782.0.4:
79------
80
81- [improvement] Better handling of dead connections (JAVA-204)
82- [bug] Fix potential NPE in ControlConnection (JAVA-373)
83- [bug] Throws NPE when passed null for a contact point (JAVA-291)
84- [bug] Avoid LoadBalancingPolicy onDown+onUp at startup (JAVA-315)
85- [bug] Avoid classloader leak in Tomcat (JAVA-343)
86- [bug] Avoid deadlock in onAdd/onUp (JAVA-387)
87- [bug] Make metadata parsing more lenient (JAVA-377, JAVA-391)
88- [bug] Ensure defunct connections are completely closed (JAVA-394)
89- [bug] Fix memory and resource leak on closed Sessions (JAVA-342, JAVA-390)
90
91
922.0.3:
93------
94
95- [new] The new AbsractSession makes mocking of Session easier.
96- [new] Allow to trigger a refresh of connected hosts (JAVA-309)
97- [new] New Session#getState method allows to grab information on
98 which nodes a session is connected to (JAVA-265)
99- [new] Add QueryBuilder syntax for tuples in where clauses (syntax
100 introduced in Cassandra 2.0.6) (JAVA-327)
101- [improvement] Properly validate arguments of PoolingOptions methods
102 (JAVA-359)
103- [bug] Fix bogus rejection of BigInteger in 'execute with values'
104 (JAVA-368)
105- [bug] Signal connection failure sooner to avoid missing them
106 (JAVA-367)
107- [bug] Throw UnsupportedOperationException for protocol batch
108 setSerialCL (JAVA-337)
109
110Merged from 1.0 branch:
111
112- [bug] Fix periodic reconnection to down hosts (JAVA-325)
113
114
1152.0.2:
116------
117
118- [api] The type of the map key returned by NoHostAvailable#getErrors has changed from
119 InetAddress to InetSocketAddress. Same for Initializer#getContactPoints return and
120 for AuthProvider#newAuthenticator.
121- [api] The default load balacing policy is now DCAwareRoundRobinPolicy, and the local
122 datacenter is automatically picked based on the first connected node. Furthermore,
123 the TokenAwarePolicy is also used by default (JAVA-296)
124- [new] New optional AddressTranslater (JAVA-145)
125- [bug] Don't remove quotes on keyspace in the query builder (JAVA-321)
126- [bug] Fix potential NPE while cluster undergo schema changes (JAVA-320)
127- [bug] Fix thread-safety of page fetching (JAVA-319)
128- [bug] Fix potential NPE using fetchMoreResults (JAVA-318)
129
130Merged from 1.0 branch:
131
132- [new] Expose the name of the partitioner in use in the cluster metadata (JAVA-179)
133- [new] Add new WhiteListPolicy to limit the nodes connected to a particular list
134- [improvement] Do not hop DC for LOCAL_* CL in DCAwareRoundRobinPolicy (JAVA-289)
135- [bug] Revert back to longs for dates in the query builder (JAVA-313)
136- [bug] Don't reconnect to nodes ignored by the load balancing policy (JAVA-314)
137
138
1392.0.1:
140------
141
142- [improvement] Handle the static columns introduced in Cassandra 2.0.6 (JAVA-278)
143- [improvement] Add Cluster#newSession method to create Session without connecting
144 right away (JAVA-208)
145- [bug] Add missing iso8601 patterns for parsing dates (JAVA-279)
146- [bug] Properly parse BytesType as the blob type
147- [bug] Potential NPE when parsing schema of pre-CQL tables of C* 1.2 nodes (JAVA-280)
148
149Merged from 1.0 branch:
150
151- [bug] LatencyAwarePolicy.Builder#withScale doesn't set the scale (JAVA-275)
152- [new] Add methods to check if a Cluster/Session instance has been closed already (JAVA-114)
153
154
1552.0.0:
156------
157
158- [api] Case sensitive identifier by default in Metadata (JAVA-269)
159- [bug] Fix potential NPE in Cluster#connect (JAVA-274)
160
161Merged from 1.0 branch:
162
163- [bug] Always return the PreparedStatement object that is cache internally (JAVA-263)
164- [bug] Fix race when multiple connect are done in parallel (JAVA-261)
165- [bug] Don't connect at all to nodes that are ignored by the load balancing
166 policy (JAVA-270)
167
168
1692.0.0-rc3:
170----------
171
172- [improvement] The protocol version 1 is now supported (features only supported by the
173 version 2 of the protocol throw UnsupportedFeatureException).
174- [improvement] Make most main objects interface to facilitate testing/mocking (JAVA-195)
175- [improvement] Adds new getStatements and clear methods to BatchStatement.
176- [api] Renamed shutdown to closeAsync and ShutdownFuture to CloseFuture. Clustering
177 and Session also now implement Closeable (JAVA-247).
178- [bug] Fix potential thread leaks when shutting down Metrics (JAVA-232)
179- [bug] Fix potential NPE in HostConnectionPool (JAVA-231)
180- [bug] Avoid NPE when node is in an unconfigured DC (JAVA-244)
181- [bug] Don't block for scheduled reconnections on Cluster#close (JAVA-258)
182
183Merged from 1.0 branch:
184
185- [new] Added Session#prepareAsync calls (JAVA-224)
186- [new] Added Cluster#getLoggedKeyspace (JAVA-249)
187- [improvement] Avoid preparing a statement multiple time per host with multiple sessions
188- [bug] Make sure connections are returned to the right pools (JAVA-255)
189- [bug] Use date string in query build to work-around CASSANDRA-6718 (JAVA-264)
190
191
1922.0.0-rc2:
193----------
194
195- [new] Add LOCAL_ONE consistency level support (requires using C* 2.0.2+) (JAVA-207)
196- [bug] Fix parsing of counter types (JAVA-219)
197- [bug] Fix missing whitespace for IN clause in the query builder (JAVA-218)
198- [bug] Fix replicas computation for token aware balancing (JAVA-221)
199
200Merged from 1.0 branch:
201
202- [bug] Fix regression from JAVA-201 (JAVA-213)
203- [improvement] New getter to obtain a snapshot of the scores maintained by
204 LatencyAwarePolicy.
205
206
2072.0.0-rc1:
208----------
209
210- [new] Mark compression dependencies optional in maven (JAVA-199).
211- [api] Renamed TableMetadata#getClusteringKey to TableMetadata#getClusteringColumns.
212
213Merged from 1.0 branch:
214
215- [new] OSGi bundle (JAVA-142)
216- [improvement] Make collections returned by Row immutable (JAVA-205)
217- [improvement] Limit internal thread pool size (JAVA-203)
218- [bug] Don't retain unused PreparedStatement in memory (JAVA-201)
219- [bug] Add missing clustering order info in TableMetadata
220- [bug] Allow bind markers for collections in the query builder (JAVA-196)
221
222
2232.0.0-beta2:
224------------
225
226- [api] BoundStatement#setX(String, X) methods now set all values (if there is
227 more than one) having the provided name, not just the first occurence.
228- [api] The Authenticator interface now has a onAuthenticationSuccess method that
229 allows to handle the potential last token sent by the server.
230- [new] The query builder don't serialize large values to strings anymore by
231 default by making use the new ability to send values alongside the query string.
232- [new] The query builder has been updated for new CQL features (JAVA-140).
233- [bug] Fix exception when a conditional write timeout C* side.
234- [bug] Ensure connection is created when Cluster metadata are asked for
235 (JAVA-182).
236- [bug] Fix potential NPE during authentication (JAVA-187)
237
238
2392.0.0-beta1:
240-----------
241
242- [api] The 2.0 version is an API-breaking upgrade of the driver. While most
243 of the breaking changes are minor, there are too numerous to be listed here
244 and you are encouraged to look at the Upgrade_guide_to_2.0 file that describe
245 those changes in details.
246- [new] LZ4 compression is supported for the protocol.
247- [new] The driver does not depend on cassandra-all anymore (JAVA-39)
248- [new] New BatchStatement class allows to execute batch other statements.
249- [new] Large ResultSet are now paged (incrementally fetched) by default.
250- [new] SimpleStatement support values for bind-variables, to allow
251 prepare+execute behavior with one roundtrip.
252- [new] Query parameters defaults (Consistency level, page size, ...) can be
253 configured globally.
254- [new] New Cassandra 2.0 SERIAL and LOCAL_SERIAL consistency levels are
255 supported.
256- [new] Cluster#shutdown now waits for ongoing queries to complete by default
257 (JAVA-116).
258- [new] Generic authentication through SASL is now exposed.
259- [bug] TokenAwarePolicy now takes all replica into account, instead of only the
260 first one (JAVA-88).
261
262
2631.0.5:
264------
265
266- [new] OSGi bundle (JAVA-142)
267- [new] Add support for ConsistencyLevel.LOCAL_ONE; note that this
268 require Cassandra 1.2.12+ (JAVA-207)
269- [improvement] Make collections returned by Row immutable (JAVA-205)
270- [improvement] Limit internal thread pool size (JAVA-203)
271- [improvement] New getter to obtain a snapshot of the scores maintained by
272 LatencyAwarePolicy.
273- [improvement] Avoid synchronization when getting codec for collection
274 types (JAVA-222)
275- [bug] Don't retain unused PreparedStatement in memory (JAVA-201, JAVA-213)
276- [bug] Add missing clustering order info in TableMetadata
277- [bug] Allow bind markers for collections in the query builder (JAVA-196)
278
279
2801.0.4:
281------
282
283- [api] The Cluster.Builder#poolingOptions and Cluster.Builder#socketOptions
284 are now deprecated. They are replaced by the new withPoolingOptions and
285 withSocketOptions methods (JAVA-163).
286- [new] A new LatencyAwarePolicy wrapping policy has been added, allowing to
287 add latency awareness to a wrapped load balancing policy (JAVA-129).
288- [new] Allow defering cluster initialization (Cluster.Builder#deferInitialization)
289 (JAVA-161)
290- [new] Add truncate statement in query builder (JAVA-117).
291- [new] Support empty IN in the query builder (JAVA-106).
292- [bug] Fix spurious "No current pool set; this should not happen" error
293 message (JAVA-166)
294- [bug] Fix potential overflow in RoundRobinPolicy and correctly errors if
295 a balancing policy throws (JAVA-184)
296- [bug] Don't release Stream ID for timeouted queries (unless we do get back
297 the response)
298- [bug] Correctly escape identifiers and use fully qualified table names when
299 exporting schema as string.
300
301
3021.0.3:
303------
304
305- [api] The query builder now correctly throw an exception when given a value
306 of a type it doesn't know about.
307- [new] SocketOptions#setReadTimeout allows to set a timeout on how long we
308 wait for the answer of one node. See the javadoc for more details.
309- [new] New Session#prepare method that takes a Statement.
310- [bug] Always take per-query CL, tracing, etc. into account for QueryBuilder
311 statements (JAVA-143).
312- [bug] Temporary fixup for TimestampType when talking to C* 2.0 nodes.
313
314
3151.0.2:
316------
317
318- [api] Host#getMonitor and all Host.HealthMonitor methods have been
319 deprecated. The new Host#isUp method is now prefered to the method
320 in the monitor and you should now register Host.StateListener against
321 the Cluster object directly (registering against a host HealthMonitor
322 was much more limited anyway).
323- [new] New serialize/deserialize methods in DataType to serialize/deserialize
324 values to/from bytes (JAVA-92).
325- [new] New getIndexOf() method in ColumnDefinitions to find the index of
326 a given column name (JAVA-128).
327- [bug] Fix a bug when thread could get blocked while setting the current
328 keyspace (JAVA-131).
329- [bug] Quote inet addresses in the query builder since CQL3 requires it
330 (JAVA-136)
331
332
3331.0.1:
334------
335
336- [api] Function call handling in the query builder has been modified in a
337 backward incompatible way. Function calls are not parsed from string values
338 anymore as this wasn't safe. Instead the new 'fcall' method should be used
339 (JAVA-100).
340- [api] Some typos in method names in PoolingOptions have been fixed in a
341 backward incompatible way before the API get widespread.
342- [bug] Don't destroy composite partition key with BoundStatement and
343 TokenAwarePolicy (JAVA-123).
344- [new] null values support in the query builder.
345- [new] SSL support (requires C* >= 1.2.1) (JAVA-5).
346- [new] Allow generating unlogged batch in the query builder (JAVA-113).
347- [improvement] Better error message when no host are available.
348- [improvement] Improves performance of the stress example application been.
349
350
3511.0.0:
352------
353
354- [api] The AuthInfoProvider has be (temporarily) removed. Instead, the
355 Cluster builder has a new withCredentials() method to provide a username
356 and password for use with Cassandra's PasswordAuthenticator. Custom
357 authenticator will be re-introduced in a future version but are not
358 supported at the moment.
359- [api] The isMetricsEnabled() method in Configuration has been replaced by
360 getMetricsOptions(). An option to disabled JMX reporting (on by default)
361 has been added.
362- [bug] Don't make default load balancing policy a static singleton since it
363 is stateful (JAVA-91).
364
365
3661.0.0-RC1:
367----------
368
369- [new] Null values are now supported in BoundStatement (but you will need at
370 least Cassandra 1.2.3 for it to work). The API of BoundStatement has been
371 slightly changed so that not binding a variable is not an error anymore,
372 the variable is simply considered null by default. The isReady() method has
373 been removed (JAVA-79).
374- [improvement] The Cluster/Session shutdown methods now properly block until
375 the shutdown is complete. A version with at timeout has been added (JAVA-75).
376- [bug] Fix use of CQL3 functions in the query builder (JAVA-44).
377- [bug] Fix case where multiple schema changes too quickly wouldn't work
378 (only triggered when 0.0.0.0 was use for the rpc_address on the Cassandra
379 nodes) (JAVA-77).
380- [bug] Fix IllegalStateException thrown due to a reconnection made on an I/O
381 thread (JAVA-72).
382- [bug] Correctly reports errors during authentication phase (JAVA-82).
383
384
3851.0.0-beta2:
386------------
387
388- [new] Support blob constants, BigInteger, BigDecimal and counter batches in
389 the query builder (JAVA-51, JAVA-60, JAVA-58)
390- [new] Basic support for custom CQL3 types (JAVA-61)
391- [new] Add "execution infos" for a result set (this also move the query
392 trace in the new ExecutionInfos object, so users of beta1 will have to
393 update) (JAVA-65)
394- [bug] Fix failover bug in DCAwareRoundRobinPolicy (JAVA-62)
395- [bug] Fix use of bind markers for routing keys in the query builder
396 (JAVA-66)
397
398
3991.0.0-beta1:
400------------
401
402- initial release