Elffuss BraidHub

kikocis/java-driver public

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