Elffuss BraidHub

kikocis/java-driver public

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