Elffuss BraidHub

kikocis/java-driver public

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