Elffuss BraidHub

kikocis/java-driver public

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