Elffuss BraidHub

kikocis/java-driver public

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